# Error when specifying baseline in voice key

**URL:** https://discourse.psychopy.org/t/error-when-specifying-baseline-in-voice-key/3073
**Category:** Builder
**Created:** [September 18, 2017, 11:39am UTC](https://discourse.psychopy.org/t/error-when-specifying-baseline-in-voice-key/3073 "2017-09-18T11:39:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![auriga](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@auriga](https://discourse.psychopy.org/u/auriga)
#### Post date: [September 18, 2017, 11:39am UTC](https://discourse.psychopy.org/t/error-when-specifying-baseline-in-voice-key/3073/1 "2017-09-18T11:39:41Z")

</div>

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!
