# Node red & sonos - play a local mp3 file

**URL:** <https://discourse.nodered.org/t/node-red-sonos-play-a-local-mp3-file/27721>\
**Category:** General\
**Created:** [3 June 2020 17:19 UTC](https://discourse.nodered.org/t/node-red-sonos-play-a-local-mp3-file/27721 "2020-06-03T17:19:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![4fc8042246ffd6745bb8](https://avatars.discourse-cdn.com/v4/letter/4/53a042/32.png) [@4fc8042246ffd6745bb8](https://discourse.nodered.org/u/4fc8042246ffd6745bb8)\
**Post date:** [3 June 2020 17:19 UTC](https://discourse.nodered.org/t/node-red-sonos-play-a-local-mp3-file/27721/1 "2020-06-03T17:19:02Z")

</div>

Hi Guys,  
I am a beginner and have a question about the "node-red-contrib-sonos-plus" node.  
I hope you can help me with my problem. I can play a notification on my Sonos system using the node (shown below). However, I would like to play a file that is local to my Raspberry, but it still doesn't work properly.  
Here are my questions:

- Where do I have to put the mp3 file on my Raspberry?
- How do I have to adjust the flow to access it?

Thanks for help!

System properties:  
operating system = openhabian, openHAB 2.5.0-1 (Release Build)  
Ip = 192.168.188.44  
Release = Raspbian GNU/Linux 10 (buster)  
Kernel = Linux 4.19.75-v7l+  
Platform = Raspberry Pi 4 Model B Rev 1.1  
Node red version: 1.0.6: Maintenance Release

```auto
[{"id":"2afc933c.556cbc","type":"tab","label":"Sonos Test","disabled":false,"info":""},{"id":"a0f7d465.1508b8","type":"inject","z":"2afc933c.556cbc","name":"play.notification","topic":"http://soundbible.com/mp3/foghorn-daniel_simon.mp3","payload":"play.notification","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":80,"wires":[["ebe0566c.958938"]]},{"id":"ebe0566c.958938","type":"change","z":"2afc933c.556cbc","name":"with volume","rules":[{"t":"set","p":"volume","pt":"msg","to":"5","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":80,"wires":[["904c77b7.275398"]]},{"id":"904c77b7.275398","type":"sonos-universal","z":"2afc933c.556cbc","confignode":"158469f4.79c106","name":"living room","x":490,"y":80,"wires":[["7316fc12.02a974"]]},{"id":"7316fc12.02a974","type":"debug","z":"2afc933c.556cbc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":630,"y":80,"wires":[]},{"id":"fd50d03c.17038","type":"comment","z":"2afc933c.556cbc","name":"Play notification","info":"","x":130,"y":40,"wires":[]},{"id":"158469f4.79c106","type":"sonos-config","z":"","name":"Wohnzimmer","serialnum":"94-9F-3E-C2-C2-26:C","ipaddress":"192.168.188.36"}]

```

 ![Sonos_example](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/d/4d5dd63f37ff1ea70978b5b47e27f3c0cc57e94c.jpeg)

---

<div class="post-metadata">

**Author:** ![4fc8042246ffd6745bb8](https://avatars.discourse-cdn.com/v4/letter/4/53a042/32.png) [@4fc8042246ffd6745bb8](https://discourse.nodered.org/u/4fc8042246ffd6745bb8)\
**Post date:** [3 June 2020 17:49 UTC](https://discourse.nodered.org/t/node-red-sonos-play-a-local-mp3-file/27721/2 "2020-06-03T17:49:03Z")

</div>

I tried it with the following:

- MP3 file ("notification\_sound\_arrival.mp3") saved in the folder "sounds" ("see picture")  
 ![folder.](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/a/1a9eb69cb4b2694d5ccd78a9b4673abeef1ae117.jpeg)
- Adaptation of the link (\ 192.168.188.44 \ openhabian \ node\_modules \ sounds \ notification\_sound\_arrival.mp3)
- When I activate the link on my laptop, the mp3 file is played
- The following error message is output in node red (see picture)  
 ![error_massage](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/a/ba18d749f6c9b41e1ce2ad99ea80c6f06ab1d53f.jpeg)
- This is the flow:

```auto
[{"id":"a0f7d465.1508b8","type":"inject","z":"2afc933c.556cbc","name":"play.notification","topic":"\\\\192.168.188.44\\openhabian\\node_modules\\sounds\\notification_sound_arrival.mp3","payload":"play.notification","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":80,"wires":[["ebe0566c.958938"]]}]

```

---

<div class="post-metadata">

**Author:** ![hklages](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hklages/32/23899_2.png) [@hklages](https://discourse.nodered.org/u/hklages)\
**Post date:** [4 June 2020 18:12 UTC](https://discourse.nodered.org/t/node-red-sonos-play-a-local-mp3-file/27721/3 "2020-06-04T18:12:47Z")

</div>

Hi. There seems to be something wrong with your path. You have to http serve the mp3 file.  
Looking at the debug message it seems that you use a \

If you need further help: I suggest that you open and issue at node-red-contrib-sonos-plus or send an email [nrcsplus@gmail.com](mailto:nrcsplus@gmail.com)

---

<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:** [3 August 2020 18:12 UTC](https://discourse.nodered.org/t/node-red-sonos-play-a-local-mp3-file/27721/4 "2020-08-03T18:12:57Z")

</div>

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