# Cannot get sound recording to work in PsychoPy

**URL:** <https://discourse.psychopy.org/t/cannot-get-sound-recording-to-work-in-psychopy/10228>\
**Category:** Builder\
**Tags:** sound\
**Created:** [December 9, 2019, 1:51pm UTC](https://discourse.psychopy.org/t/cannot-get-sound-recording-to-work-in-psychopy/10228 "2019-12-09T13:51:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariee](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@mariee](https://discourse.psychopy.org/u/mariee)\
**Post date:** [December 9, 2019, 1:51pm UTC](https://discourse.psychopy.org/t/cannot-get-sound-recording-to-work-in-psychopy/10228/1 "2019-12-09T13:51:32Z")

</div>

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:

```auto
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

---

<div class="post-metadata">

**Author:** ![Michael](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/michael/32/16_2.png) [@Michael](https://discourse.psychopy.org/u/Michael)\
**Post date:** [December 9, 2019, 10:45pm UTC](https://discourse.psychopy.org/t/cannot-get-sound-recording-to-work-in-psychopy/10228/2 "2019-12-09T22:45:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mariee](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@mariee](https://discourse.psychopy.org/u/mariee)\
**Post date:** [December 10, 2019, 7:31am UTC](https://discourse.psychopy.org/t/cannot-get-sound-recording-to-work-in-psychopy/10228/3 "2019-12-10T07:31:25Z")

</div>

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

```auto
     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…
