# How to play audio file in browser / on Windows PC?

**URL:** <https://discourse.nodered.org/t/how-to-play-audio-file-in-browser-on-windows-pc/37516>\
**Category:** General\
**Created:** [15 December 2020 10:09 UTC](https://discourse.nodered.org/t/how-to-play-audio-file-in-browser-on-windows-pc/37516 "2020-12-15T10:09:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MeowMilk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/meowmilk/32/33693_2.png) [@MeowMilk](https://discourse.nodered.org/u/MeowMilk)\
**Post date:** [15 December 2020 10:09 UTC](https://discourse.nodered.org/t/how-to-play-audio-file-in-browser-on-windows-pc/37516/1 "2020-12-15T10:09:47Z")

</div>

Hello, I'm pretty new to node-red, so maybe the solution is obvious, but I can't figure it out. I was hoping to be able to trigger a sound on my computer (doesn't matter if it's in my browser or through other means) using node-red, but I can't find how to get it to work. I tried node-red-contrib-play-audio-file and node-red-contrib-play-sound, but I couldn't find how I'm supposed to trigger play-sound, and for play-audio-file I get "INFO: Could not find files for the given pattern(s)." (Maybe the way I put the path to the file is incorrect? It's set to D:\sounds\sound.wav).  
This might be my fault, but I can barely find any information on how to use either of these two modules, so I'm pretty lost.

---

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [15 December 2020 13:20 UTC](https://discourse.nodered.org/t/how-to-play-audio-file-in-browser-on-windows-pc/37516/2 "2020-12-15T13:20:47Z")

</div>

Hi welcome to Node-Red, do you know how to import a flow ?

You have to install node-red-dashboard from Palette : ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/d/5de8d5e6ea3620bd07ad432217c040875e7dd8ee.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/4/549a6549f898e2fcd37ea7013ddc987a14e775b5.png)  
And import this Flow :

```auto
[{"id":"76d30983.299248","type":"inject","z":"891d9857.40c7e8","name":"test","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":200,"y":1870,"wires":[["41775b78.4c9a54"]]},{"id":"41775b78.4c9a54","type":"file in","z":"891d9857.40c7e8","name":"sound","filename":"D:\\\\Documents\\\\Music\\\\Speech Misrecognition.wav","format":"","chunk":false,"sendError":false,"encoding":"none","x":320,"y":1870,"wires":[["e8d2ca21.103598"]]},{"id":"e8d2ca21.103598","type":"ui_audio","z":"891d9857.40c7e8","name":"","group":"c8f428f6.3c4ca8","voice":"fr-FR","always":true,"x":450,"y":1870,"wires":[]},{"id":"c8f428f6.3c4ca8","type":"ui_group","name":"Group 1","tab":"5a28a0ac.e6b3e","order":1,"disp":true,"width":"9","collapse":false},{"id":"5a28a0ac.e6b3e","type":"ui_tab","name":"Home","icon":"dashboard","order":15}]

```

Note : you have to put double `\` in your Filename directory :  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/8/d8ffe85ec14c0c4ebc0341e8372077bda85c4a50.png)

---

<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:** [29 December 2020 13:21 UTC](https://discourse.nodered.org/t/how-to-play-audio-file-in-browser-on-windows-pc/37516/3 "2020-12-29T13:21:08Z")

</div>

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