Issue with Initializing Experiments on Pavlovia - Naming Task that Records Audio

Hi Everyone,

I’m trying to set up a word naming experiment on Pavlovia that records reaction times to vocal responses, and am running into the issue where the experiment remains stuck on the initializing screen. My understanding is that this may be due to an issue with the JavaScript files associated with the experiment. During the initial creation of the JS files, I get several errors, including this:

Alert 4210:JavaScript Syntax Error in ‘Begin JS Experiment’ tab. See ‘Line 1: Unexpected token’ in the ‘Begin JS Experiment’ tab.

Followed by the following errors:
Line 93: Unexpected token in List 1.js
The line of code in question appears to be this: instructionsClock = new util.Clock();

Line 83: Unexpected token in List 1-legacy-browsers.js
The line of code in this error appears to be identical.

When I attempt to initialize the experiment on Pavlovia after generating the HTML and JS files, I get two warnings, and an error:

Warning #1: The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page (s.default.Context @ Tone.min.js: 1)

Warning #2: The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page (s.default.Signal @ Tone.min.js: 1)

Error: Uncaught SyntaxError: Unexpected Token ‘*’ in List 1.js: 94

The line that produces that error:
import & as vk from ‘psychopy/voicekey’;

I am quite stuck with this problem. My best guess is that PsychoJS doesn’t support voice keys yet. Can anybody confirm whether that’s true?

URL of experiment: https://gitlab.pavlovia.org/mcphedrm/picture-word-naming-task

Hi There,

Unfortunately the microphone option is not yet implementable online (see list of component statuses here https://www.psychopy.org/online/status.html) but we hope to have this available in the future.

Thanks,
Becca