Your code works just fine when I test it. I’m using the most recent version of PennController (1.8) in which VoiceRecorder is deprecated in favor of MediaRecorder, but your code is still retro-compatible.
The only problem I have is that the “Record” button should be reading “Stop” instead, because you start recording before printing the interface. The continue button only appears after I click “Record” (which, again, should read “Stop”) and if I click the continue button, then it proceeds to the next trial, because I’m done recording: I clicked Stop, even though it misleadingly read “Record.”
Here’s what you can do to fix the text of the “Record/Stop” button:
newVoiceRecorder("recorder") .log() .print() .record() , newFunction( ()=>$(".PennController-MediaRecorder-record").html("Stop") ).call() , getVoiceRecorder("recorder").wait()
Let me know if you have questions