[solved] audio input as response/variable
Hi everyone,
First of all, sorry in case my question is trivial and my descriptions basic, I normally use my computer for not much else than office applications.
I'm using OpenSesame to build a picture naming task, i.e., pictures (sketchpad items) are displayed in succession which are to be named by the participants with their response being recorded. All this is working fine so far, but here's the crucial bit: I want to measure the time they need to name the picture.
If I understand the programme correctly, a way to make this work would be to have their vocal response determine the duration of the sketchpad item display, so that this duration can be the time measured. Is it technically possible to make the onset of some audio input the variable that determines duration (i.e., ends display)?
Or, alternatively, is there a way to measure the time between two sounds, i.e. if I included a synth item just before the picture to measure the time between synth item and vocal response? (other than running some other programme simultaneously in the background).
Thanks very much for your help!!
Friederike
Comments
Hi Friederike,
Welcome to the forum!
For a previous thread on using a voice key in OpenSesame, Sebastiaan uploaded an example experiment that does something similar:
However, nowadays there is also a sound-recorder plugin with which you can record audio directly from a microphone, and save the resulting .wav files (per trial) for offline processing. Perhaps this is the most convenient way to obtain the vocal response times in your experiment. The audio plugins can be downloaded here:
Does this help? Please let us know if we can help you further in applying either of these two suggestions to your specific situation.
Best wishes,
Lotje
Did you like my answer? Feel free to

Hi Lotje,
Thank you so much! I've worked with the sound-recorder plugin previously, and it seems the example experiment is just what I need now to save time and get more accurate reaction times.
Thanks!!
Friederike
I'm glad to hear that! Good luck and don't hesitate to ask any further questions!
Did you like my answer? Feel free to

Hello,
I'll use to this post, it's similar to experiment I want to create.
I'm trying to set up an experiment with OpenSesame (a picture naming task).
I tried to use soundrecorder plugin and it's working fine. OS saves the audio file for every picture presented.
I want to save also the response time of the participant (when the participant starts to talk). It's possible to take this "response time" from the soundrecorder object?
Do you have any suggestion?
Thanks in advance,
Paolo
I tried the voice key example above, but is not working and also I have to restart open sesame every run.
Please build and install the PortAudio Python bindings first.
W7.64bit - OS 2.9.1 (32bit) - Python 2.7.3 (32) PyAudio-0.2.8 and pymedia-1.3.7.3