Description of the problem:
Hi,
My experiment runs fine locally but when I try to run it online it does not get past “initialising the experiment”, any suggestion is appreciated.
Hey - try running the JavaScript console on your browser when you try and load the experiment - this will probably give you a better idea of what’s going wrong!
I’m noticing that it’s giving me an “Uncaught SyntaxError: Unexpected token ‘*’”
The line that seems to be giving it trouble:
function experimentInit() {
// Initialize components for Routine “instructions”
instructionsClock = new util.Clock(); import * as vk from ‘psychopy/voicekey’;
import {DemoVoiceKeySignal as Signaler} from ‘psychopy/voicekey/demo_vks’;
vk.pyo_init({“rate”: 44100, “buffersize”: 32});
From what I understand, PsychoJS is still under development and not everything that is available in PsychoPy is available for online studies. The GitHub page for PsychoJS has a list of the available components. Voice keys are not currently on that list, so I don’t think you’ll be able to use them online at the moment.