That would be so cool for setting off conversations between my devices. I could have a sexy lady's voice on a Home Mini chat with a hunky Australian on my Google Home ha ha ha
That would really freak out my Airbnb Guests. Ha ha haaaaaah!
You certainly need something if RM can't do it.
I have been thinking to add it to 'Speaker Central' or 'Message Central' (http://hubitat.uk) but not got around to it yet.. maybe next release
I modified a fork of the squeeze player integration (for LMS - Logitech Media Server) to do exactly this. Basically it has in preferences for each device a voice/language choice and also a custom command to setVoice so you can change the voice through rules machine.
Note: The voice selected in preferences will override the HE global Voice selection. And the setVoice command will override the default in preferences. To go back to voice preference of the device you just need to send a NULL through setVoice (or an invalid voice).
I commented all my changes with //ecallegari so you can easily add it on any TTS driver. Chrome device driver is my next one for cast devices and the fullyk integration is another one.
I will post soon (remind me if I don't in the next day or two). Just wanted to do some more testing on some of the voices/languages/characters since my main purpose to do this was to handle multi-lingual announcements and speech. (living in a multi-lingual home)
Ok, checked it in but not fully tested. It works for most voices I tried but have not tested putting in non-English characters. When I arrive home I will try that out and fix if needed.
It's a fork from the original squeezebox from xap. Only modifications in squeezebox-player.groovy marked with //ecallegari.
I plan to implement more on others if you have any ideas of other integrations that could use it.
Thanks Cobra!!
I just made a few modifications to the MediaRenderer Player apps and now I can select which voice I want my Sonos to speak (one per Sonos) and it works!
But now I want to do it on a text by text basis.
Now and since you look like an expert in groovy programming, may I ask a favour from you?
I would like to know how to split this text in 2 and get rid of the [] This is some text to speak [Salli]
To get 2 strings:
1-This is some text to speak
2- Salli
Then with a simple modif in MediaRenderer I will be able to make it speak the way I want just by putting the voice in the text string.
Took me a while because I'm new to this groovy stuff. But I'm beginning to like it!
P.S. This will ONLY work with DLNA compatible speakers and a slightly modified version of the MediaRenderer Player driver app by Author: SmartThings - Ulises Mujica (Ule) and
altered for Hubitat by @veeceeoh.
One down, 2 more to go!
1- I need some kind of geofences system like the one used in Stringify
2- I need some kind of traffic alert system, again like the one used is Stringify
Ok, you must have guessed it, I "was" a BIG user of Stringify
I was also a Beta tester for them for almost 2 years, mainly with geofences.
Sooooo sad Comcast decided to shut it down.