Reply To: Keypress to initiate mediarecord

PennController for IBEX Forums Support Keypress to initiate mediarecord Reply To: Keypress to initiate mediarecord

#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, 6 months ago by amilam.