I am designing a picture naming experiment in PsychoPy 3 (V 2020.2.5) from which I want to get the record of the vocal RTs. I’m not good at software language at all, however, I’ve copied the code component from the PsycoPy demo for the word-naming experiment.
The point is that when I add the code to my experiment, it doesn’t run at al.
Each trial in my task includes: a fixation, a word (with two different SOAs), a noise, an image (which I want to be named), and an intertrial interval.
I have inserted the VoiceKey code in the instruction routine as the beginning of the experiment and in the routine with the image.
If you’re running locally, what’s probably happened is that one of your code components is set to “auto-JS”, meaning the Python code is automatically translated to JavaScript for running online, and there’s some problem translating it. If you’re not running online then this isn’t needed, so changing it to just “Py” gets around this problem.
It’s also worth noting that in 2021.2.0 we made pretty substantial changes to the microphone component, making it a lot more stable, so it may also be worth updating to the latest version and giving it another go.
Sorry, I just checked your response.
Although none of the components were “auto-JS”, now it is fortunately running. But the point is that the reaction time that the vocal_RT reports in the .csv file is not a valid number and all the numbers are 0.19, 0.16, 0.17 or so.
And I don’t know what could be wrong with that!
This is the begin experiment code:
The import and pyo_init should always come early on:
import psychopy.voicekey as vk
vk.pyo_init(rate=44100, buffersize=32)
What signaler class to use? Here just the demo signaler:
from psychopy.voicekey.demo_vks import DemoVoiceKeySignal as Signaler
To use a LabJack as a signaling device:
#from voicekey.signal.labjack_vks import LabJackU3VoiceKeySignal as Signaler
I have set the durations based on my screen refresh rate. I wonder if PsychoPy could handle many components in one trial and give an accurate RT number!
I’ll check out for the microphone component too.
Thanks a bunch for your help