I posted an FYI in another thread but perhaps this is a better location.
Sonos tech support said their new update requires any sonos file to have a bandwidth of 16k minimum. He felt that is why Vera says “success” to a Google tts scene yet silence interrupts any streaming music. The say mp3 we are sending may be at a bandwidth of 16k or below. I hope this helps because I miss my talking house. As a newbie to the forum I want to thank everyone for all the info you share so graciously.
Thanks Lolodomo. Next time I see a sale on Sonos I’ll have to get me one. Trying to avoid using Google as much as possible as they have enough on me already.
[quote=“JS007, post:36, topic:188206”]not sure if this helps anyone with a fix
but someone posted this online
got the link from this article
https://mojolingo.com/blog/2015/importance-of-vendor-relationships-in-apis/[/quote]
You are the best.
I have found in this code that several parameters were added in the HTTP request. And believe me, it works again 8)
I just need now to understand the meaning of these parameters “total”, “idx”, “client”, …
I finally fixed the problem with Google API by just adding “&client=Vera” in the request !
Google TTS is back.
You have to update from this link: trunk – Sonos Wireless HiFi Music Systems
You have to upload 4 files: I_Sonos1.xml + J_Sonos1.js + L_SonosTTS.lua + S_Sonos1.xml. Take them from the ZIP file.
As a bonus, you will discover that now you have languages per country in the UI, for example British Englsh and American English.
That is available for Google TTS, Microsoft Translator TTS and MaryTTS.
In scenes, use for example en-US or fr-CA. Of course you can continue using fr or en.
I restored my system back to a few days before Google translation broke. I then uploaded the new files you listed. I checked the settings on the device and all looked fine. From the TTS page I can’t get the test to work. Attached is the log.
Edit: Working now. Removed entire plugin, located latest zip 221.
this worked for me for Google. Still no joy with MS… appreciate the fixes!
Hi,
This is how I update the 4 files.
I click on APPS–>Develop Apps–>Luup files and upload the 4 files as mentioned. I reload vera 3 and there is still no joy.
Do I have to uninstall the Sonos application and reinstall it? How do I reinstall it?
@loldomo,
Slow question, I’ve updated my files based on your latest, looking at the Sonos device>TTL tab; I can now see Google, Mary and Microsoft selections. I assume that all three are now working? If that is the case do we’re happy with the original Google translator do we need to populate the Mary and/or Microsoft entries? thanxs Mike
[quote=“lolodomo, post:44, topic:188206”]I finally fixed the problem with Google API by just adding “&client=Vera” in the request !
Google TTS is back.
You have to update from this link: trunk – Sonos Wireless HiFi Music Systems
You have to upload 4 files: I_Sonos1.xml + J_Sonos1.js + L_SonosTTS.lua + S_Sonos1.xml. Take them from the ZIP file.
As a bonus, you will discover that now you have languages per country in the UI, for example British Englsh and American English.
That is available for Google TTS, Microsoft Translator TTS and MaryTTS.
In scenes, use for example en-US or fr-CA. Of course you can continue using fr or en.[/quote]
Hi
Where are the zip files? Or do I have to download the 4 files from the trunk 223 site and then zip them?
Thanks
[quote=“jonstrasser, post:49, topic:188206”]Hi
Where are the zip files? Or do I have to download the 4 files from the trunk 223 site and then zip them?
Thanks[/quote]
you need to download the entire zip folder, click on the zip archive button on the bottom of the page, you cannot download the individual files, they wont work. then unzip the the 4 needed files to a separate folder, upload those to your vera. make sure to check mark the relaod luup button
[url=http://code.mios.com/trac/mios_sonos-wireless-music-systems/browser/trunk]http://code.mios.com/trac/mios_sonos-wireless-music-systems/browser/trunk[/url]
[quote=“MNB, post:48, topic:188206”]@loldomo,
Slow question, I’ve updated my files based on your latest, looking at the Sonos device>TTL tab; I can now see Google, Mary and Microsoft selections. I assume that all three are now working? If that is the case do we’re happy with the original Google translator do we need to populate the Mary and/or Microsoft entries? thanxs Mike[/quote]
All three are working, at least for me. Problems are reported with Microsoft Translator by few of you.
Of course you have to setup engine only if you want to use it.
@lolodomo,
Can you provide an example as to what the specific URL’s should be for each engine (Google, Mary, Microsoft). thanxs Mike
Will this plugin be updated through the App Store or do we need to do it manually? I can wait a week for the app to auto update if need be.
Yes I will try to do it but probably not in the coming week.
Ok, no problem. I’m patient for your great work! If need be I’ll do it manually but I’d rather the system do it itself.
google now working - thanks for the patch!
Hi,
I need more help. I have not changed anything other than the 4 files as instructed.
I have updated the files and can see ‘Mary TTS server URL’ etc.
In the sonos plugin–>TTS, I entered the text of ‘test’ and click on ‘say’.
At the sonos controller, I still get the error message of ‘unable to encode…etc’
Please see attached pciture.
What am I not doing right?
I am also still having the problems and cant play tts
For those having trouble with the zipped 4-file set offered by lolodomo several days ago, I can tell you it didn’t work for me either. I went to the repository [url=http://code.mios.com/trac/mios_sonos-wireless-music-systems/browser/trunk]http://code.mios.com/trac/mios_sonos-wireless-music-systems/browser/trunk[/url] and archived up the latest versions of just those 4 files (I_Sonos1.xml, J_Sonos1.js, L_SonosTTS.lua and S_Sonos1.xml), downloaded the zip, extracted it, and uploaded the files via “Apps->Develop Apps->Luup files->Upload”, restarted Vera, and have been able to use Google and Microsoft successfully ever since. YMMV but it’s probably worth a shot
PS - Make sure you don’t have any “extra” versions of the 4 files in your /etc/cmh-ludl directory before you restart. I had an extra L_SonosTTS.lua file (not gzip’d!). Lua would load that file before any compressed version. If you use the MiOS web interface via Develop Apps to upload, your uploaded files will be automagically gzip’d
You guys are great, this fix worked perfectly, sure missed that morning weather update in my master bathroom!!