# What to use to play WAV files

**URL:** <https://discourse.nodered.org/t/what-to-use-to-play-wav-files/51681>\
**Category:** General\
**Created:** [29 September 2021 19:15 UTC](https://discourse.nodered.org/t/what-to-use-to-play-wav-files/51681 "2021-09-29T19:15:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcdonald\_ajr](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mcdonald_ajr/32/33342_2.png) [@mcdonald\_ajr](https://discourse.nodered.org/u/mcdonald_ajr)\
**Post date:** [29 September 2021 19:15 UTC](https://discourse.nodered.org/t/what-to-use-to-play-wav-files/51681/1 "2021-09-29T19:15:00Z")

</div>

I am looking for a node that can play WAV files on multiple operating systems (linux, windows, mac).  
It would be good to have control over the volume too.  
This is more complex than it seems, as it would be good to have the ability to configure it to play through the host operating system locally, and/or through the browser, when accessing node-red remotely via a dashboard. Any suggestions anyone? Thanks, Anthony

---

<div class="post-metadata">

**Author:** ![sefaguntepe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sefaguntepe/32/94497_2.png) [@sefaguntepe](https://discourse.nodered.org/u/sefaguntepe)\
**Post date:** [29 September 2021 19:49 UTC](https://discourse.nodered.org/t/what-to-use-to-play-wav-files/51681/2 "2021-09-29T19:49:22Z")

</div>

Hi,

It's actually very easy, "File in" and "audio out (ui\_audio)"

Just add the extension of the file in "File in". I'm doing it on "Pi".

```auto
[{"id":"ee68c808.3b9f28","type":"file in","z":"1c1a514e.c8deff","name":"sound","filename":"/home/pi/Downloads/olg1hata.mp3","format":"","chunk":false,"sendError":false,"encoding":"none","x":1510,"y":1360,"wires":[["a6420abc.6b6f38"]]},{"id":"a6420abc.6b6f38","type":"ui_audio","z":"1c1a514e.c8deff","name":"","group":"d8da4e9.528a5b","voice":"fr-FR","always":true,"x":1640,"y":1360,"wires":[]},{"id":"d8da4e9.528a5b","type":"ui_group","name":"Genel Durum","tab":"74fda9d8.9a5188","order":2,"disp":true,"width":24,"collapse":false},{"id":"74fda9d8.9a5188","type":"ui_tab","name":"Test Merkezi","icon":"fa-cog","order":1,"disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [29 September 2021 20:24 UTC](https://discourse.nodered.org/t/what-to-use-to-play-wav-files/51681/3 "2021-09-29T20:24:11Z")

</div>

I don't think the audio out node has the option of playing on the server does it? It is browser only.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [2 October 2021 11:13 UTC](https://discourse.nodered.org/t/what-to-use-to-play-wav-files/51681/4 "2021-10-02T11:13:14Z")

</div>

There are also quite a few nodes for playing audio (server side) on [flows.nodered.org](http://flows.nodered.org)

---

<div class="post-metadata">

**Author:** ![mcdonald\_ajr](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mcdonald_ajr/32/33342_2.png) [@mcdonald\_ajr](https://discourse.nodered.org/u/mcdonald_ajr)\
**Post date:** [2 October 2021 11:39 UTC](https://discourse.nodered.org/t/what-to-use-to-play-wav-files/51681/5 "2021-10-02T11:39:35Z")

</div>

Thanks for the suggestions, I have used them all, but to build a logic that copes with all circumstances (different operating systems, browsers, laptops, PDAs etc) is very complex, especially handling volume control as well. I'm thinking of a built-in node for sound that hides that complexity, attempts to determine the most suitable output mechanism, and is configurable by the end user, (headphone, speaker, HDMI, bluetooth speaker, browser etc). I think that would be most welcome. I believe Pulseaudio is becoming a standard, but programming such a node is beyond my abilities. It may be that we need two, one for browser output, and one for local server output. The browser ones do exist but I think still have issues, especially on PDA's, phones etc.

---

<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:** [1 December 2021 11:40 UTC](https://discourse.nodered.org/t/what-to-use-to-play-wav-files/51681/6 "2021-12-01T11:40:17Z")

</div>

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