# Attribute Error: No audio API found. Try installing pyo 0.6.8+, or pygame 1.8+

**URL:** <https://discourse.psychopy.org/t/attribute-error-no-audio-api-found-try-installing-pyo-0-6-8-or-pygame-1-8/1762>\
**Category:** Builder\
**Created:** [January 16, 2017, 3:07pm UTC](https://discourse.psychopy.org/t/attribute-error-no-audio-api-found-try-installing-pyo-0-6-8-or-pygame-1-8/1762 "2017-01-16T15:07:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Svensona1](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Svensona1](https://discourse.psychopy.org/u/Svensona1)\
**Post date:** [January 16, 2017, 3:07pm UTC](https://discourse.psychopy.org/t/attribute-error-no-audio-api-found-try-installing-pyo-0-6-8-or-pygame-1-8/1762/1 "2017-01-16T15:07:45Z")

</div>

I am aware that there are other threads on this topic; however, most of them were on Mac. I am currently using Windows 7 and I am almost strictly using builder mode.

The above mentioned error message is displayed whenever I try to run anything on Psychopy. Previously, we were running our lab PCs on XP, and Psychopy never had any issues.

If anyone has any sound suggestions, I’m all ears. Unfortunately, we’re supposed to be running participants this week–so, as you can imagine, this is a time-sensitive issue.

Thanks,

-Drew

---

<div class="post-metadata">

**Author:** ![daniel.riggs1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/daniel.riggs1/32/8103_2.png) [@daniel.riggs1](https://discourse.psychopy.org/u/daniel.riggs1)\
**Post date:** [January 16, 2017, 3:21pm UTC](https://discourse.psychopy.org/t/attribute-error-no-audio-api-found-try-installing-pyo-0-6-8-or-pygame-1-8/1762/2 "2017-01-16T15:21:07Z")

</div>

Just so we know, what version of psychopy are you running?

Also, does your experiment actually involve playing or recording sound?

Depending on your psychopy version, there is another audio library available, ‘pysoundcard’ . It’s not super well tested, but especially if your experiment doesn’t need audio, put it first in the list in your psychopy settings for audio back end, and I think the error will go away.

---

<div class="post-metadata">

**Author:** ![Svensona1](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Svensona1](https://discourse.psychopy.org/u/Svensona1)\
**Post date:** [January 16, 2017, 3:36pm UTC](https://discourse.psychopy.org/t/attribute-error-no-audio-api-found-try-installing-pyo-0-6-8-or-pygame-1-8/1762/3 "2017-01-16T15:36:11Z")

</div>

The experiment does play sound blasts each time a participant loses a round. Will that make a difference?

---

<div class="post-metadata">

**Author:** ![daniel.riggs1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/daniel.riggs1/32/8103_2.png) [@daniel.riggs1](https://discourse.psychopy.org/u/daniel.riggs1)\
**Post date:** [January 16, 2017, 4:45pm UTC](https://discourse.psychopy.org/t/attribute-error-no-audio-api-found-try-installing-pyo-0-6-8-or-pygame-1-8/1762/5 "2017-01-16T16:45:09Z")

</div>

Psychopy has the option of three different backends for sound: pyo, pygame, or pysoundcard.

The issue is just that since pysoundcard isn’t super well-tested, it might not work right. If it were me, I would try it. If it doesn’t work, you would just be trading one set of errors for another. But if it works, then great!

The long-term goal is to no longer rely on pyo since it causes a lot of problems, and I’m not sure what their feelings are on pygame.

If pysoundcard doesn’t work, and you wanted to post about the error, we could try to get it working for you (and potentially improve the code for everyone else).

You could also install pygame, I believe there are a number of posts here about installing pygame on Windows (make sure you install it in Psychopy’s interpreter!). But if pysoundcard works out of the box in your case, it will be a much easier solution than installing pygame.

---

<div class="post-metadata">

**Author:** ![daniel.riggs1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/daniel.riggs1/32/8103_2.png) [@daniel.riggs1](https://discourse.psychopy.org/u/daniel.riggs1)\
**Post date:** [January 16, 2017, 5:00pm UTC](https://discourse.psychopy.org/t/attribute-error-no-audio-api-found-try-installing-pyo-0-6-8-or-pygame-1-8/1762/6 "2017-01-16T17:00:27Z")

</div>

But again, which Psychopy version are you using? I remember at one point there was a mistake and pygame was left out unintentionally.

> [@Standalone Win32 for v1.84.0 doesn't include pygame](https://discourse.psychopy.org/t/standalone-win32-for-v1-84-0-doesnt-include-pygame/987):
>
> My experiment that used pygame\* for presenting sound runs fine in v1.83.04 but fails in v1.84.0 telling me to install an audio library. In case anybody else runs into this problem, I resolved it by copying over the pygame directory from v1.83.04’s C:\Program Files (x86)\PsychoPy2\Lib\site-packages directory into the same directory for v1.84.0. Is this a packaging error or has pygame support been deprecated? pyo isn’t usable for me because I need it for voicekey functionality, in which case Ps…

---

<div class="post-metadata">

**Author:** ![Svensona1](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Svensona1](https://discourse.psychopy.org/u/Svensona1)\
**Post date:** [January 16, 2017, 5:03pm UTC](https://discourse.psychopy.org/t/attribute-error-no-audio-api-found-try-installing-pyo-0-6-8-or-pygame-1-8/1762/7 "2017-01-16T17:03:58Z")

</div>

I’m using 1.84. I’m currently in the process of uninstalling it so I can install 1.82.

---

<div class="post-metadata">

**Author:** ![Svensona1](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Svensona1](https://discourse.psychopy.org/u/Svensona1)\
**Post date:** [January 16, 2017, 5:08pm UTC](https://discourse.psychopy.org/t/attribute-error-no-audio-api-found-try-installing-pyo-0-6-8-or-pygame-1-8/1762/8 "2017-01-16T17:08:01Z")

</div>

And I did try switching to pysoundcard; of course, that only seemed to further equivocate the problem. And I did try installing pygame, but to be honest, I have no idea how it works.
