I installed the amazonechocontrol-binding, connected the account and added an echo speaker. There seem to be two things for the same physical object. One of them (the smarthomedevice, probably the one I need?) doesn’t connect correctly:
So I use the other device which has a lot of channels for music control, but also some for commands which should make her speak: Sprich/textTo Speech and Befehl/textCommand:
I created items for all channels, then tried a bunch of javascript-lines in a rule, none of them make her speak:
events.postUpdate("AlexaHolger_Sprich","Alexa say OK");
AlexaHolger_Befehl.sendCommand("Alexa say OK");
AlexaHolger_Sprich.sendCommand("Alexa say OK"); //this seems to be the German texttospeach-channel
events.postUpdate("AlexaHolger_Sprich","<speak> Alexa say OK </speak>");
AlexaHolger_Befehl.sendCommand("<speak> Alexa say OK </speak>");
AlexaHolger_Sprich.sendCommand("<speak> Alexa say OK </speak>");
events.postUpdate("AlexaHolger_Sprich",<speak> Alexa say OK </speak>);
AlexaHolger_Befehl.sendCommand(<speak> Alexa say OK </speak>);
AlexaHolger_Sprich.sendCommand(<speak> Alexa say OK </speak>);
events.postUpdate('AlexaHolger_Sprich','Alexa say OK');
AlexaHolger_Befehl.sendCommand('Alexa say OK');
“AlexaHolger_Befehl.sendCommand is used for routines.” ← so I guess only the “events.postUpdate”-commands work. When I run that, the text gets inserted into the item but Alexa remains silent (no matter whether with or without):
I’m still quite new to OH, so I don’t really understand what you mean by “Check if the TTS with item AlexaHolger_Sprich works via the karaf console” - probalby not this?:
No, that didn’t make Alexa speak either. And it didn’t change the item’s value (same as posted above, and Wolfgang’s posting). Does it change your item’s value or does Alexa speak without any changes of the item’s content?
I tried different alexa-devices, same problem. However, I tested a different action (change loudness) which worked. But I want her to speak…