audio data


Author
Message
sin
sin
Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)
Group: Awaiting Activation
Posts: 6, Visits: 9
Hi all,
I'm sorry for this easy question. I want to create a page where the probands listen to one song while there is only one sentence on the screen.
I tried to make this with the "sound" command, but it doesnt work (inquisit can't find my item, although the original music data is in the same folder).
Has anyone got a simple syntax for me to copy??

Thanks a lot,

Sina
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: 109K
#1: Note that <sound> will only play WAV files. For anything else (e.g. MP3), use <video>. Make sure the file(s) are where the script expects them to be (usually the same location as the script file) and double-check your syntax.
#2: Syntax is pretty easy. Set up your <sound> or <video> element.

<sound mysound>
/ items = ("mywav.wav")
...
</sound>

<text mysentence>
/ items = ("A sentence goes here...")
...
</text>

<trial mytrial>
/ stimulusframes = [1=mysound, mysentence]
...
</trial>

sikeller
sikeller
Respected Member (343 reputation)Respected Member (343 reputation)Respected Member (343 reputation)Respected Member (343 reputation)Respected Member (343 reputation)Respected Member (343 reputation)Respected Member (343 reputation)Respected Member (343 reputation)Respected Member (343 reputation)
Group: Forum Members
Posts: 6, Visits: 29
Sorry for asking again..
but there is still an error... "'No response' can not be specified unless the trial has a timeout."

<sound mypmr>
/ items = ("pmr.wav")
</sound>

<text mysentence>
/ items = ("A sentence goes here..."; "timeout = 8000ms")
</text>

<trial tr_mypmr>
/ stimulusframes = [1= mypmr, mysentence]
</trial>

<block bl_pmr>
/ trials = [1 = tr_mypmr]
</block>

Could you please tell me what is wrong?
Thanks! Sina
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: 109K
There is no /validresponse or the like defined for your <trial>. Thus Inquisit must assume you do not want it to register any response at all (i.e. noresponse). That can only work, though, if the trial times out at some point (i.e. /timeout or /trialduration is specified) -- otherwise the trial would just sit there forever / never terminate.

What you want to do is

<sound mypmr>
/ items = ("pmr.wav")
/ playthrough = true
</sound>

<trial tr_mypmr>
/ stimulusframes = [1= mypmr, mysentence]
/ timeout = 8000
</trial>

This makes no sense:

<text mysentence>
/ items = ("A sentence goes here..."; "timeout = 8000ms")
</text>
sin
sin
Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)
Group: Awaiting Activation
Posts: 6, Visits: 9
I'm sry, it's me again. I changed the syntax as you said... but while the rest of the experiment works, the experiment skips the part of the audio and the corresponding page and misses this part and starts with the next trail following the audio.
Do you know, what is wrong? ...Thanks for your help and sorry for asking so much questions...

<sound mypmr>
/ items = ("pmr.wav")
/ playthrough = true
</sound>

<trial tr_mypmr>
/ stimulusframes = [1= mypmr, mysentence]
/ timeout = 480000
</trial>

<text mysentence>
/ items = ("Bitte schließen Sie die Augen und folgen Sie der Audioaufnahme")
</text>

<block bl_pmr>
/ trials = [1 = tr_mypmr]
</block>

<expt EG_PMR>
/blocks = [1= bl_Willkommen; 2 = bl_Affekt&Schwer; 3 = bl_pmr; 4 = bl_Affekt;]
/subjects = (4 of 5)
</expt>




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: 109K
<expt EG_PMR>
/blocks = [1= bl_Willkommen; 2 = bl_Affekt&Schwer; 3 = bl_pmr; 4 = bl_Affekt;]
/subjects = (4 of 5)
</expt>

Where are your other four <expt> elements? Which one are you running? And is the block included in the one you're actually running?

sin
sin
Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)
Group: Awaiting Activation
Posts: 6, Visits: 9
these are all experiments. I'm running the 4th to try out the audio data, but it doesnt work...

expt Kontrollgruppe>
/blocks = [1= bl_Willkommen; 2 = bl_Affekt&Schwer;]
/subjects = (1 of 5)
</expt>

<expt EG_keine Pause>
/blocks = [1= bl_Willkommen; 2 = bl_Affekt&Schwer;]
/subjects = (2 of 5)
</expt>

<expt EG_Pause>
/blocks = [1= bl_Willkommen; 2 = bl_Affekt&Schwer; 3 = bl_Pause; 4 = bl_Affekt;]
/subjects = (3 of 5)
</expt>

<expt EG_PMR>
/blocks = [1= bl_Willkommen; 2 = bl_Affekt&Schwer; 3 = bl_pmr; 4 = bl_Affekt;]
/subjects = (4 of 5)
</expt>

<expt EG_Achtsamkeit>
/blocks = [1= bl_Willkommen; 2 = bl_Affekt&Schwer; 3 = bl_acht; 4 = bl_Affekt;]
/subjects = (5 of 5)
</expt>

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: 109K
No obivous issues in the code snippets you provided. Please put the script and all files it requires in a ZIP archive and attach said archive to this thread.

sin
sin
Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)Associate Member (265 reputation)
Group: Awaiting Activation
Posts: 6, Visits: 9
Thanks a lot for your help!
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: 109K
So, can you attach the files, please? I can't tell you what's wrong with your script otherwise. To attach a file click on +Insert when posting a reply and then select Add File.

https://www.millisecond.com/forums/uploads/images/3dc0a495-ae31-4df5-9def-c907.png

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search