PennController for IBEX › Forums › Support › Keypress to initiate mediarecord › Reply To: Keypress to initiate mediarecord
September 29, 2021 at 7:12 pm
#7322
amilam
Participant
Hi,
You can do the following (and in the Key command insert any Key you want, and you can add optional text with instructions ):
[“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()
,
newMediaRecorder("recorder", "audio")
.record()
.log()
,
newKey(" ")
.wait()
,
getMediaRecorder("recorder")
.stop()
,
newButton(“validate”, “Click to continue”)
.print()
.wait()
)]
Hope it helps!
- This reply was modified 2 years, 11 months ago by amilam.