[solved] Repeat sound
Hi everybody,
In my experiment, the participants hear stories (via media_player_vlc).
I would want to allow them to listen to the story a second time after the first listening.
Is it possible to make it by using custom_python ? If yes, could you indicate to me how do that or, if I have badly looked for the link towards the resolution of this problem?
Thank you in advance of your help,
Best regards,
Lucie
Comments
Hi Lucie,
For starters, if people are just listening to the stories, I would use the sampler plug-in, which was specifically designed to play sounds and is more stable then the media_player_vlc plug-in (which was designed for video).
You can use the sampler functions in an inline_script as well:
NOTE: this assumes you have the names of the sound files defined in your loop, as variable storyname.
Good luck!
Hi Edwin,
Thank you for our answer.
The repetition of sounds works now with your script.
But the names of variables in my loop do not work.
My construction is like '[story]_[sound].wav' .
Could you help me for that ?
Thank you in advance of your help,
Best regards,
Lucie
Hi Lucie,
Change the bit that finds your sound file from:
to:
Does that do it for you?
Good luck!
Hi Edwin,
Thank you so much for your answer.
Now, everything works as wished
Best regards,
Lucie
That's great! Will mark this as solved