Is there a way to initiate the recorder via key press rather than with a button click or a timer? Right now, if I use .print() with newVoiceRecorder it makes a button, but i would really like to be able to initiate the recorder with a key press instead. Is there any way to do this? Here is an example item below. Thank you so much!!!
[“item”, “PennController”, PennController(
newText(“instructions”, “Listen to the sentence and then repeat it while recording your voice”)
.print()
,
newAudio(“sound”, “webaddressofsounnd.html”)
.print()
.wait()
,
getAudio(“sound”)
.remove()
,
newVoiceRecorder(“recorder”) \\this is where i would like the keypress rather than button
.print()
,
newButton(“validate”, “Click to continue”)
.print()
.wait()
)]