psychopy.org | Reference | Downloads | Github

Error when specifying baseline in voice key

Hi there,

I’m trying to specify a specific baseline for the voice key using one of the listed configs, like this:

vpvk = vk.OnsetVoiceKey(sec=60,file_out=‘data/word.wav’,baseline=10)

However I’m getting this error:

Traceback (most recent call last):
File “/Users/brionybanks/Categorisation task/Pilot/Pilot_v2_lastrun.py”, line 378, in
vpvk.start()
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/voicekey/init.py”, line 398, in start
self._baselinetrig.play()
AttributeError: ‘OnsetVoiceKey’ object has no attribute '_baselinetrig’
Exception RuntimeError: RuntimeError(‘sys.meta_path must be a list of import hooks’,) in <bound method ExperimentHandler.del of <psychopy.data.experiment.ExperimentHandler object at 0x111aa1c90>> ignored
Exception TypeError: “‘NoneType’ object is not callable” in <bound method Server.del of <pyolib.server.Server object at 0x11e26fa90>> ignored

We think that the specified baseline is not overriding the default ‘baselinetrig’ attribute, i.e. it’s a bug in the code, but we don’t know how to fix it. Can anyone help?

Many thanks!