psychopy.org | Reference | Downloads | Github

“ReferenceError: vk is not defined” on Pavlovia

URL of experiment:

Description of the problem:
I made an experiment with voicekey and Keyboard events in the builder. It works fine locally, but when I export HTML and push to Pavlovia, I get this error:

Reference error: vk is not defined.

I updated my psycholpy3 to the new version and used auto py>JS, but the problem still exist.

Python code:
vpvk = vk.OnsetVoiceKey(
sec=2,
file_out=‘data/’+str(trials.thisN).zfill(3)+’_’+trial+’.wav’)
vpvk.start()

Auto> JS
vpvk = new vk.OnsetVoiceKey({“sec”: 2, “file_out”: ((((“data/” + trials.thisN.toString().zfill(3)) + “_”) + trial) + “.wav”)});
vpvk.start();

I’m probably missing something in my code, but if anyone could point it out it’d be much appreciated!