Sonos TTS and WAV Support

I’m running a TTS server similar to the OSX (but in Windows), however the speech is presented as a WAV file. Can this be an option within the plugin (WAV mode/MP3 mode) or can someone walk me through making the necessary modifications. Once I get this working I’d be more than happy to write step-by-step instructions for others who don’t mind running a localized speech server whereby the voices can be purchased from Ivona or simply use the ones provided within Windows (in this case 8.1).

Put your WAV file on a WEB server and try to use it as a WEB radio in the Sonos control application. I am not sure but I think it is not accepted by Sonos.

Yes I’m not quite sure if these Sonos products care what’s being streamed (music/TTS) as long as it conforms to their audio formats. The WAV format is accepted (up to 1411 kbps).
If I get time tonight I’ll see if I can park the TTS output and as you say, serve it to the Sonos device.

[url=https://sonos.custhelp.com/app/answers/detail/a_id/80/~/supported-audio-formats#var_i]https://sonos.custhelp.com/app/answers/detail/a_id/80/~/supported-audio-formats#var_i[/url]

Thanks

I’m attaching a sample file I generated using the speech server in the event someone has access to these tools. I’ll see if I can get a Shoutcast station running later this week/weekend.

The idea is more to setup a WEB radio in Sonos pointing to your file.
It is unbelievable but I don’t find how to do that in the new Sonos application on android tablet ! I will check later on my PC but I am sure to have already done that on the PC.
You could for example upload your file in the Vera in directory /www and them use URL http://Vera_IP/my file.wav as URL in Sonos.

In looking at the Sonos site (I don’t use stations on Sonos) for setup instructions, it indicates that - “Sonos currently supports MP3, AAC and WMA streaming audio formats.”. So it’s not a matter of supported formats, rather supported streaming formats (which is what you were indicating earlier).

[url=https://sonos.custhelp.com/app/answers/detail/a_id/264]https://sonos.custhelp.com/app/answers/detail/a_id/264[/url]

Err, wait - I looked at the link I provided earlier and they also mention streaming for WAV. Confusing ! I’ll just stick to testing this tonight and see what happens…

[quote=“lolodomo, post:5, topic:182089”]The idea is more to setup a WEB radio in Sonos pointing to your file.
It is unbelievable but I don’t find how to do that in the new Sonos application on android tablet ! I will check later on my PC but I am sure to have already done that on the PC.
You could for example upload your file in the Vera in directory /www and them use URL http://Vera_IP/my file.wav as URL in Sonos.[/quote]

ok, hosted the tts.wav on the www/ directory within Vera. After much effort, finally figured out how to add a radio station to Sonos (had to use PC, 5.0 controller has nothing for adding a station anymore). Good news is the wav file plays, bad news it plays 1000 miles per hour. Added an mp3 for sanity and of course if plays fine.

Perhaps the issue is the sampling rate, after all - I’m hearing something play (at the speed of light) rather than seeing an error or hearing nothing. So I’ll play with the generating TTS at various sample rates (and channels) based on those supported by Sonos.

8k/16k/22050/32000/44100/48000

I thought I’d drop in and give a quick update.

The sample rates and various methods used to construct the WAV file had no effect on slowing down the audio for Sonos. At this point I decided to move in a different direction and test Virtual Box on my 8.1 system (used primarily for security cameras and other stuff). Once Virtual Box was configured for an OS X (64 bit) environment, I installed OS X Maverick (10.9) - loaded the TTS (Wolf) server and verified the Ethernet was binding (not NAT’d) correctly. I loaded a couple of voices from Infovox (aka Acapela) and I’ve been running this way for a couple of days now without any issues.

Thanks lolodomo for the tutorial on web (via Vera) serving the TTS files - it was extremely helpful. A feature I don’t think I’ve seen mentioned is the ability to observe errors generated by Sonos when attempting to open/stream the file. If you have the Sonos app up and running, it’ll actually tell you that the file is incorrectly encoded.