| Reference | Downloads | Github

Audio capture crash


OS (e.g. Win10): macOS 10.12.5
PsychoPy version (e.g. 1.84.x): 1.85.2
Standard Standalone? (y/n) If not then what?: Yes
What are you trying to achieve?: Audio capture with microphone to record subject’s voice response

What did you try to make it work?:

Adding a Mic device resulted in a crash (see error log below). I then added ‘sounddevice’ to the audio library (PsychoPy Preferences) and removed ‘pyo’. This resulted in the same error. Thus, PsychoPy still seems to use the ‘pyo’ library for audio capture? I also removed ‘pygame’ from the audio library, leaving only ‘sounddevice’ but that also resulted in a pyo server error.

What specifically went wrong when you tried that?:

pyo version 0.8.6 (uses single precision)
2017-07-19 09:50:36.744 python[49652:5473983] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/xr/nb94j4f57cv0cvxtcgpvwm1r0000gq/T/org.psychopy.PsychoPy2.savedState
Traceback (most recent call last):
File “/Desktop/Video test v1/video exp”, line 361, in
mic_1 = microphone.AdvAudioCapture(name=‘mic_1’, saveDir=wavDirName, stereo=False)
File “/Applications/”, line 356, in init
buffering=buffering, chnl=chnl, stereo=stereo)
File “/Applications/”, line 145, in init
raise AttributeError(‘pyo server not created’)
AttributeError: pyo server not created

Does anyone have an idea how to get the audio capture to work?


I am having the same problem. Has anyone found a solution to this?