psychopy.org | Reference | Downloads | Github

Voicekey error 'Baseline period is TOO quiet'

task_script.py (3.0 KB)
Hi! I’m trying to run the attached code (I’ve tried simplifying it as much as possible for repex purposes) and I’m running into the error

Traceback (most recent call last):
File “/private/var/folders/b8/v2895yyj5nv3bz_404fgwkf40000gn/T/AppTranslocation/95BED026-4EEF-4317-9C67-A4F976B90B71/d/PsychoPy3.app/Contents/Resources/lib/python3.6/pyolib/_core.py”, line 768, in __call__
return self.method(self.target, *args, **kwargs)
File “/private/var/folders/b8/v2895yyj5nv3bz_404fgwkf40000gn/T/AppTranslocation/95BED026-4EEF-4317-9C67-A4F976B90B71/d/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/voicekey/__init__.py”, line 262, in _set_baseline
raise ValueError(msg)
ValueError: Baseline period is TOO quiet
wrong input channel selected? device-related initial delay?

I’ve read through the voicekey documentation on Github (and kind of slaved away at this for countless hours) but I’m still not sure what I should change. I should note—the code still runs, but it’s not recording an RT/ the OnsetVoiceKey() is seemingly detecting sound from the very first moment even when I don’t talk into the mic. Thanks in advance!