That would depend on what the author used for TTS there. But if the same translate.google.com service is being used, then yes, it’s probably being aggressively rate-limited as well.
The fix is to use Google’s new service. That introduces the kind of subtle complexity you had/have with things like weather APIs, Rachio irrigation APIs, etc. Each user has to have an account registered, auth tokens need to be generated and stored, and all the necessary auths have to be added to the queries. Maybe a credit card required because it’s a free-tier service that graduates to paid (without warning). It takes 10 lines of code and turns it into 200 plus UI, and adds to it the support complexity of managing the user trying to get it configured, putting all the right keys in the right locks, etc… Yeah. Not impossible, but as they say “probably not today; tomorrow’s not looking good either.”
Hi Patrick,
Testing it out and so far so good. It works from the TTS page on the device as well as a action in Reactor. Also works from the Test Luup code window. Don’t usually send to multiple speakers but will test it out see if it is working. Really appreciate your looking into this.
Group behavior appears to be working, at least for the Say command in Reactor. I was able to broadcast to three different systems simultaneously. Tested joining to devices together from the Group section and that works.
Did find an issue with the Player section. I can kick off a Sonos Favorites selection from the app and it will start to play, however it never updates the status in the Player section or the devices main page.
Roger
OK. I’ll poke at that. Do you have the UPnP Event Proxy app/plugin installed, or are you operating in polling mode? If you are not sure, go to the “Settings” tab. It will tell you there if the proxy is being used (right above the “Debug logs” controls near the bottom).
Thank you Patrick for looking into this!
This might be a bit OT, but is it possible to have the Sonos play a mp3-file from the SSD-drive that´s connected and is a part of my Extrooted Vera Secure? Today I have the soundfile on a NAS, but doesn´t seem reliable, not longterm as least.
I have some newer play 1’s and they have a different hardware revision which means they are not recognized with the correct icon. So i modified the I_sonos1.xml file a year ago to fix that.
I did that by adding the following in the corresponding section:
elseif (values.modelNumber == “S12”) then
model = 6
end
(The S12 is the play 1 with the newer hardware revision, the S1 is the other one)
I made an update today in the stable branch on Github with several tweaks, particularly handling of icons and improvements with respect to the timing of polling (used when UPnP Event Proxy is not installed).
That’s the reason I got involved with it. RV was broken, I could see how to fix it. At least for the moment. These things are moving targets, you know.
I know, I was just kidding around. But that would make you one of the lucky ones, and maybe you just didn’t notice. But there was an issue with the use of wget to retrieve the sound file; changing over to curl resolved it. It’s quite possible that the change they made that perturbed wget was reversed later. In any case, curl is a better long-term fix, along with using the new direct URL instead of the one requiring a redirect.
The full list of changes is in the head post on this topic, actually.