How to play a sound from the local network on Sonos

David Pritchard shared this idea 9 years ago
Under Consideration

Some have said that it's impossible to play a sound on the Sonos from the local network. Not true - you just need to use the correct (obscure) syntax.


The prefix needs to be x-file-cifs:, and the slashes should be forward slashes, Unix-style. The rest is just the name of the computer, shared folder, and file name, e.g.:


x-file-cifs://mycomputer/SharedSounds/raintoday.mp3


However before that I think you need to set the URI to x-rincon-queue: and send the RINCON of the player itself (the one from which you want the sound to play). I'm pretty sure that it doesn't work unless you do this first step.

Replies (5)

photo
2

Hello David,


I have a Android set-top box for TV. I installed a little webserver on that box. An external SD card is my data provider. I have access with:


http://192.168.x.x:port/sound.mp3


first as allways the IP adress of the webserver

port is the choosen port (i.e. 8080)

and the file you want to play.

works

photo
1

Through the Sonos? Nice.

That's another option.

photo
2

Yes. I recorded some voice mail for intruders :-) and put them on this webserver. Now I have rule which activates this sound by motion at night...

photo
1

Nice, thanks for sharing.

photo
1

Does anybody know if/how I can have the following URL send to the SONOS? Or must it be converted first?


http://translate.google.com/translate_tts?ie=UTF-8&total=1&idx=0&textlen=32&client=tw-ob&q=Hi%20this%20is%20a%20test&tl=En-gb

photo
1

Hi Martin,

Did you find a way to solve your question?

I am struggeling with the same issue.

Thomas

photo
1

The file must be a mp3. This website converts text to mp3. http://www.readthewords.com/Try.aspx

photo
1

To play a sound from your local network on Sonos, you simply need to use the correct file path format—Sonos supports local playback using the x-file-cifs: prefix with Unix-style forward slashes, so a valid example would look like x-file-cifs://mycomputer/SharedSounds/raintoday.mp3; before triggering playback, you must first set the URI to x-rincon-queue: along with the RINCON ID of the specific speaker you want to play from, since Sonos won’t process the network file correctly unless its queue is initialized this way, and just as you rely on specialized help like Plumbing Estimating Services for accurate project planning, using the proper syntax ensures smooth and reliable playback from your shared network folders.

Replies have been locked on this page!

Access denied