Millisecond Forums

Voice record in Inquisit 4

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

By Esther - 6/7/2015

Dear all,

in my experiment I would like to record vocal responses, whole sentences to be exact.
Right now, there are wav-files created, but only with a duration of 1 second.
My script looks like this: 

<text KarenSzenario>
/items = ("Als Karen Single war, sprach sie mit ihrer besten Freundin Anne")
/position = (50, 20)
</text>

<text KarenSatz>
/items = ("Karen spricht über Probleme mit ihrem Ehemann.")
</text>

<response Tonaufnahme>
/ mode = anyresponse
/ srsignal = sound
/ rwwidth = 18000
</response>

<trial Karen>
/stimulustimes = [0 = Karenszenario; 9000 = KarenSatz; 18000=Karenszenario, KarenSatz]
/inputdevice = voicerecord
/response = Tonaufnahme
/validresponse = (anyresponse)
/recorddata = true
</trial>

Is there a way that Inquisit records the whole sentence? How can I accomplish that Inquisit stops recording when the subjects gives a signal, e.g. presses a key?

Best regards and thanks a lot

Esther

By Dave - 6/8/2015

> How can I accomplish that Inquisit stops recording when the subjects gives a signal, e.g. presses a key?

You can't. A <trial> has a single input modality, it cannot have several. In your case, the input modality ought to be voicerecord.

> Is there a way that Inquisit records the whole sentence?

Yes. Give the <trial> enough time to do it by specifying a sufficient /trialduration. You'll want to do something along the lines of

<trial Karen>
/stimulustimes = [0 = Karenszenario; 9000 = KarenSatz; 18000=Karenszenario, KarenSatz]
/inputdevice = voicerecord
/validresponse = (anyresponse)
/beginresponsetime = 9000
/trialduration = 18000
/responseinterrupt = trial
/recorddata = true
</trial>

Hope this helps.
By Esther - 6/8/2015

Thanks a lot. 

I tried out your script, but unfortunately my problem remains: the wav-files are only one second long. 
Is it possible that it might be a problem of the compatibility of Inquisit 4 with Macintosh? I use a macbook with  OS W 10.9.4 .

Furthermore I got another problem: 

Often I get the message " Setting has invalid text ') '.  " even though I can run the script and I can't find a mistake in the script. 
Here is an example:

<radiobuttons IOC10>
/ caption = ("Wie leicht ist es Ihnen insgesamt gefallen, die Sätze klar und deutlich vorzulesen?

sehr schwer sehr leicht")
/ orientation = horizontal
/ options = ("  ", "   ","  ","  ","  ","  ","  ")
/ optionvalues = ("1", "2", "3", "4", "5", "6", "7")
/required = true
</radiobuttons>

<radiobuttons IOC11>
/ caption = ("Stellen Sie sich bitte vor, Sie hätten zusätzliche Zeit, solche mehrdeutigen Sätzen zu üben.
Inwiefern, glauben Sie, würden sich Ihre Leistungen bei dieser Aufgabe verbessern? 

gar nicht   sehr")
/ orientation = horizontal
/ options = ("  ", "   ","  ","  ","  ","  ","  ")
/ optionvalues = ("1", "2", "3", "4", "5", "6", "7")
/required = true
</radiobuttons>


The error-message ist defined for the element <radiobuttions.IOC11>, but if I double-click on it, Inquisit highlights a line in  <radiobuttions.IOC10>

Thanks a lot in advance and best regards!
By Dave - 6/9/2015

No, I'm not aware of any general incompatibility with regards to OSX 10.9.x. Can you post the *exact* <trial> definition you are using right now? Also, does changing the /responseinterrupt mode have any effect?

<trial Karen>
/stimulustimes = [0 = Karenszenario; 9000 = KarenSatz; 18000=Karenszenario, KarenSatz]
/inputdevice = voicerecord
/validresponse = (anyresponse)
/beginresponsetime = 9000
/trialduration = 18000
/responseinterrupt = frames
/recorddata = true
</trial>

Regarding the error message: The syntax in your /caption attributes is wrong. Captions are not to be enclosed with ( ). I.e.,

/ caption = ("Wie leicht ist es Ihnen insgesamt gefallen, die Sätze klar und deutlich vorzulesen?

sehr schwer sehr leicht")

ought to read

/ caption = "Wie leicht ist es Ihnen insgesamt gefallen, die Sätze klar und deutlich vorzulesen?

sehr schwer sehr leicht"
By Esther - 6/9/2015

Great.
I changed the script to 

<trial Karen>
/stimulustimes = [0 = Karenszenario; 9000 = KarenSatz; 18000=Karenszenario, KarenSatz]
/inputdevice = voicerecord
/trialduration = 18000
/responsetime = 9000
/validresponse = (anyresponse)
/responseinterrupt = trial
/recorddata = true
</trial>

and now it works.
Thanks a lot for the help!