# Node-red-contrib-play-sound

**URL:** <https://discourse.nodered.org/t/node-red-contrib-play-sound/65800>\
**Category:** General\
**Created:** [29 July 2022 21:29 UTC](https://discourse.nodered.org/t/node-red-contrib-play-sound/65800 "2022-07-29T21:29:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maartengeerlingd](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@maartengeerlingd](https://discourse.nodered.org/u/maartengeerlingd)\
**Post date:** [29 July 2022 21:29 UTC](https://discourse.nodered.org/t/node-red-contrib-play-sound/65800/1 "2022-07-29T21:29:50Z")

</div>

Does anyone have an example of this node running on a ubuntu machine?

I can't get it to play any sound. When I start an mp3 it auto stops directly.  
I image it has something to do with the options you can provide.  
I have mplayer installed and in the terminal it plays just fine with mplayer.

I'm migrating my node red from macOS to ubuntu. On the mac everything worked just fine. I used "{"afplay": ["-v", 0.3] } " in the option box of the node.

So any help would be appreciated!  
Thx.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [30 July 2022 00:39 UTC](https://discourse.nodered.org/t/node-red-contrib-play-sound/65800/2 "2022-07-30T00:39:40Z")

</div>

From what I can find, Ubuntu uses PluseAudio for its player. You will need to figure out the CLI commands to get that to work but be aware the node hasn't been updated in 4 1/2 years...

Here is a link to a 'hints' issue I wrote back in 2018 that might give you some help: [How to serve up options to a player (AFPLAY tested) · Issue #6 · MattVador/node-red-contrib-play-sound · GitHub](https://github.com/MattVador/node-red-contrib-play-sound/issues/6)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [28 September 2022 00:39 UTC](https://discourse.nodered.org/t/node-red-contrib-play-sound/65800/3 "2022-09-28T00:39:44Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
