# Pygame Mixer in python script - No available audio device

**URL:** <https://discourse.nodered.org/t/pygame-mixer-in-python-script-no-available-audio-device/67038>\
**Category:** General\
**Created:** [28 August 2022 18:14 UTC](https://discourse.nodered.org/t/pygame-mixer-in-python-script-no-available-audio-device/67038 "2022-08-28T18:14:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [28 August 2022 19:30 UTC](https://discourse.nodered.org/t/pygame-mixer-in-python-script-no-available-audio-device/67038/2 "2022-08-28T19:30:37Z")

</div>

This might help

> [@Exec node can't execute the command but terminal does](https://discourse.nodered.org/t/exec-node-cant-execute-the-command-but-terminal-does/60892/11):
>
> It might not be a file path problem but make sure you've tested that all out 1st When running audio stuff from the exec node - you sometimes have to be explict about specifying what audio hardware to use. I play an mp3 via an exec node and had to add in lots of stuff to get it work mpg123 -a plughw:1,0 alexa.mp3 You might have to do something similar to hear your speech It took a lot of googling to find out how to get mine to work

---

_[View the full topic](https://discourse.nodered.org/t/pygame-mixer-in-python-script-no-available-audio-device/67038)._
