psychopy.org | Reference | Downloads | Github

Cannot get sound recording to work in PsychoPy

I already posted about this issue on github, and Jon suggested that it might be due to conflicting Python installations. I have now uninstalled everything Python from my system and re-installed Python 3.7 and PsychoPy, but I still get the same error.

I want to create an experiment in which I record participants. I added the ‘Microphone’ response type for this, however, whenever I try to run the experiment I get the following error in the console:

AttributeError: module 'psychopy.sound' has no attribute 'backend_pyo'

I installed the pyo package, and as explained above, tried a lot of fiddling with Python versions, it’s still not working.


OS (e.g. Win10): Windows 10 Pro
PsychoPy version (e.g. 1.84.x): 3.2.4
Standard Standalone? (y/n) yes

What happens if you go to the “Experiment settings” dialog “Audio” tab and set the sound library to “ptb” instead of “pyo”?

I get the same error when I set it to “ptb”:

     import psychopy.sound.backend_pyo as pyo
 AttributeError: module 'psychopy.sound' has no attribute 'backend_pyo'

I also get the same error with the 3 other options available there…