Millisecond Forums

Voice record function and varying trial duration

https://forums.millisecond.com/Topic19782.aspx

By mvdv82 - 9/29/2016

Dear list,

I am trying to use the voice record function to record participants' speech input (a single word). This is what I have so far:

<trial recordingc4_1>
/ inputdevice = voicerecord
/ stimulusframes = [1=speakericon]
/ trialduration = 2000
/ responsetime = 0
/ validresponse = (anyresponse)
/ responseinterrupt = trial
/ recorddata = true
</trial>

The recording function works, but somehow the duration of the trial (and likewise the presentation of the picture) varies. It seems to be correlated with the duration of the speech, but not consistently. Could 
anyone please inform me about the underlying mechanism/logic behind this? I need to understand how it works, so that I  can report on it later on (and adjust the script if necessary)... Thanks in advance!

Kind regards,

Marco
By Dave - 9/30/2016

Once the trial has registered a response (here: the voice input exceeds a certain threshold), it will enter its postrialpause for the remainder of the specified /trialduration. The default behavior is to erase any stimuli (here: the picture) once a response has been registered. If you want the image to remain on-screen for the entire duration of the trial, either set its /erase attribute to false, or do

<trial recordingc4_1>
/ inputdevice = voicerecord
/ stimulustimes = [0=speakericon; 2000=speakericon]
/ trialduration = 2000
/ beginresponsetime = 0
/ validresponse = (anyresponse)
/ responseinterrupt = frames
/ recorddata = true
</trial>