joshua_lyon
(Josh, SharpTools.io Dashboard)
October 17, 2019, 10:01pm
4
The SharpTools.io Rule Engine also has support for all the commands exposed by the new Sonos Websocket device handler.
If your goal is to play sound files, you can use playTrack()
to play your files like you may have been accustomed to with the previous Sonos device handler:
TTS is a bit more work, but it’s really much easier than it seems:
Yes, SharpTools can do audio announcements. TTS is a bit more tricky due to the changes made to the websocket DTH.
SharpTools has access to all of the methods that the new Sonos Websocket DTH exposes including playTrack() and related commands. The playText() method which performed text-to-speech with the previous Sonos DTH is no longer available in the Sonos Websocket DTH.
So there’s not a built-in TTS method directly on the driver anymore, but you can play any file that’s hosted on the web.
So one approach is to use a service like fromtexttospeech.com and then use the resulting file in the playTrack() method.
Create the TTS File
Navigate to fromtexttospeech.com
Enter in your desired phrase and tap Create Audio File
(For testing purposes) Right-click the link of the resulting fil…
1 Like