# Cannot Use Voice-capture function

**URL:** <https://discourse.psychopy.org/t/cannot-use-voice-capture-function/7328>\
**Category:** Coding\
**Created:** [April 6, 2019, 10:40am UTC](https://discourse.psychopy.org/t/cannot-use-voice-capture-function/7328 "2019-04-06T10:40:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goldjoz](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/goldjoz/32/4403_2.png) [@Goldjoz](https://discourse.psychopy.org/u/Goldjoz)\
**Post date:** [April 6, 2019, 10:40am UTC](https://discourse.psychopy.org/t/cannot-use-voice-capture-function/7328/1 "2019-04-06T10:40:23Z")

</div>

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](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
