How to play a sound from the local network on Sonos

David Pritchard shared this idea 8 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

hello guys,

I created a rule to annouce a " hello with the name of the person when it disarms our securité system/


I used a service text to speech to have my text in audio format.

the audio file is hosted on my dropbox and shared.

that's where I meet my problem, Sonos does not read my file, he tells me that it is not correctly coded!


I tried several audio formats like Flac, mp3, Wma but each time the same error message. (the song is not correctly coded)


the same files that are on my dropbox, if I sync them to my Sonos music library is work!


I found an MP3 file, taken from a site that works with my configuration (file on dropbox + sends HTTP request to Sonos with the links of the audio file.


I will share the two properties of the files for you if you understand a few things.

the one that works is on the right and an image of my rule.

photo
Leave a Comment
 
Attach a file