Voice record in Inquisit 4


Author
Message
Esther
Esther
Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)
Group: Forum Members
Posts: 3, Visits: 18
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


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
> 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.

Esther
Esther
Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)
Group: Forum Members
Posts: 3, Visits: 18
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!
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
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"
Edited 9 Years Ago by Dave
Esther
Esther
Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)Respected Member (306 reputation)
Group: Forum Members
Posts: 3, Visits: 18
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!



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search