psychopy.org | Reference | Downloads | Github

Cannot Use Voice-capture function

#1

Hello,
I have been trying to code an experiment using the Voice capture function on Psychopy V 1.85.6. I however haven’t been able to make it work, either by using the instructions here:
https://www.psychopy.org/api/microphone.html
or even when I’m using the Demo provided with Psychopy. I have tried to use the demo on several computers. I receive an error massage they vary between computers, but the last one goes a such:
############ Running: F:\Demos\voiceCapture\voiceCapture_lastrun.py ############
pyo version 0.8.7 (uses single precision)
2.5659 ERROR avbin.dll failed to load. Try importing psychopy.visual
as the first library (before anything that uses scipy)
and make sure that avbin is installed.
Traceback (most recent call last):
File “F:\Demos\voiceCapture\voiceCapture_lastrun.py”, line 199, in
mic = microphone.AdvAudioCapture(name=‘mic’, saveDir=wavDirName, stereo=False)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\microphone.py”, line 357, in init
self.setMarker()
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\microphone.py”, line 402, in setMarker
sampleRate = sound.pyoSndServer.getSamplingRate()
AttributeError: ‘NoneType’ object has no attribute ‘getSamplingRate’

I have also recieved massages as regarding Pyopy being unreachable.
Any help, or guides regarding Psychopy Voice Capture?

Thanks in advance,
Jozeph

0 Likes