# Play audio file

**URL:** <https://discourse.nodered.org/t/play-audio-file/7026>\
**Category:** General\
**Created:** [19 January 2019 19:28 UTC](https://discourse.nodered.org/t/play-audio-file/7026 "2019-01-19T19:28:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ghbisson](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Ghbisson](https://discourse.nodered.org/u/Ghbisson)\
**Post date:** [19 January 2019 19:28 UTC](https://discourse.nodered.org/t/play-audio-file/7026/1 "2019-01-19T19:28:07Z")

</div>

I ty to use the "Play audio file" node but can't find the way to make it work. I can play mp3 music from my Raspberry pi with VLC software with no problem. I'd like to know if there is a dependency to have it work or any other detail I missed. Thanks.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [19 January 2019 19:38 UTC](https://discourse.nodered.org/t/play-audio-file/7026/2 "2019-01-19T19:38:00Z")

</div>

Alway useful if you give the full name of the node, as it helps others know what node you mean.

If you mean [https://flows.nodered.org/node/node-red-contrib-play-audio](https://flows.nodered.org/node/node-red-contrib-play-audio)

As per the ReadMe it is to play audio in the browser, and there are requirements listed in the ReadMe

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [19 January 2019 20:52 UTC](https://discourse.nodered.org/t/play-audio-file/7026/3 "2019-01-19T20:52:15Z")

</div>

Hi @Ghbisson,

It will be useful for us that you share the part of your flow that is playing your music.

When I look at the web audio [compatibility chart](https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats#Browser_compatibility), all major browser should be able to play mp3.

If I'm not mistaken, the node-red-contrib-play-audio node plays audio in the Node-RED flow editor, and not in the Node-RED dashboard. Make sure that you are not trying to listen with the wrong tool ...

And you can always have a look at the console log of your browser, to see if the web audio library has logged perhaps any problems ...

Bart

---

<div class="post-metadata">

**Author:** ![Ghbisson](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Ghbisson](https://discourse.nodered.org/u/Ghbisson)\
**Post date:** [19 January 2019 22:39 UTC](https://discourse.nodered.org/t/play-audio-file/7026/4 "2019-01-19T22:39:45Z")

</div>

Yeap I should have add the complete name  
Here's the link:

> **[node-red-contrib-play-audio-file](https://www.npmjs.com/package/node-red-contrib-play-audio-file)**
>
> Play an audio file

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [19 January 2019 22:54 UTC](https://discourse.nodered.org/t/play-audio-file/7026/5 "2019-01-19T22:54:33Z")

</div>

Ah, never seen that node. Seems that it plays an audio file via a command-line based audio player that needs to be installed on linux. Sorry I have only experience with audio loaded from my Raspberry (e.g. using node-red-contrib-play-audio) and then send to my browser where it needs to play. Good luck!
