Probably common sense (since it’s based on Chromecast technology) but I haven’t seen it mentioned yet so I figured I’d put it out there.
Google Home works with the Chromecast binding. I haven’t fully tested it, but it does allow the Home to be listed as an audio sink and you can push TTS messages to it. One weird thing, on my first message there was a chime tone before the message was delivered, on subsequent tests the chime did not sound.
The documentation should be adjusted I guess to list support of Home.
In Configuration>System>Audio make your Home the default audio sink
Add a say command to a rule.
say("This is a test.")
This is assuming you already have a TTS installed and set up such as VoiceRSS. If you need help with that let me know but it’s pretty easy. Install the VoiceRSS binding, go to the VoiceRSS website and register and get a key and then add it to the binding configuration (under services).
Install Chromecast binding - check
Add Home in Inbox - check
Make Home the default audio sink - check
Enter VoiceRSS api key - check
Add say command - check
TTS via Google Home - FAIL
I added the following rule to my rules file.
rule "TTS Test"
when
//Time cron "0 55 20 * * ?"
Item sKitchenLightStatus received command OFF
then
say("Hey, who turned out the lights?")
end
But for some reason, nothing plays. Neither the events log nor the openhab log show anything about the say command. The event log has the switch changed but nothing else. A few times I got a noise blip from my Google Home when I turn the light off but no TTS sound.
Hmmm… I’m not at my home computer now. Is there a setting in Configuration>System (maybe in voice or audio) to set VoiceRSS as the default TTS? I think you need to set the service as default and the voice you wish to use. I’ll try to help more tomorrow when I’m home.
I was just playing with this.
I can only get it to work if i set the DEfault voice in PaperUI to be "cmu-slt-hsmm - English ( United States )"
None of the VoiceRSS ones work ;-(
Edit: Scratch that… I hadnt added my API key from VoiceRSS into the binding.
The only thing that I am not happy about is that it seems that when it activates TTS, any existing application stops. So, if I am using it to play music, the music stops completely when it says something.
For your information, I recently added a patch to the chromecast binding that should make it return to its previous activity after playing the notification.
Should be included in recent mightly builds.
I think I am in a similar boat to you, Stephen. I can get an initial blip noise from my Google Home but the say command doesn’t work. Nothing else works after that.
I have voiceRSS api key entered, my Google Home as my default speaker, VoiceRSS Text to Speech Engine, VoiceRSS US English as the default voice, and Rule based Interpreter all set up.
Please post your SetUP and the logentries you get while trying to get a Feedback. Are you using a rule or are you trying it from the Karaf-Console?
I’m using different audio-sink, including ChromeCast, and it is working with all of them.
I have the same issue, the playSound or TTS does not work through my mini google home. I can confirm that if I set the audio sink to web audio, it will play through my browser.
In addition, I can also play an mp3 through the Chromecast ‘play URI’ channel directly.
rule "TTS Test"
when
Item TTS_TEST changed from OFF to ON
then
playSound("doorbell.mp3")
end
@Lolodomo Everything here is working perfectly. VoiceRSS works great and is triggering from rules to all of my Google Home Mini’s, but when audio is playing and is interrupted to say a command from openhab it does not return to the audio that was initially playing. From your reply it seems that you fixed it in Feb '17 but it is not working for me.