I am so happy, I have searched a long time for a solution to let alexa speak anything what I want, and now I found the solution!
In the past, I found solutions with hacking an alexa remote or creating a MP3 with the amazon services which will be streamed with bluetooth. But I was not really happy with this solutions. Another possibility was the reminder feature, but there was a big disadvantage with this, because there was always a intro with ‘I remind you’ followed by the supplied text.
But now amazon have provided a new routine feature where a user can define a custom text to speak. And because my amazonechocontrol binding supports already starting a routine by using the preview feature, it was easy to use this feature now for TTS.
It’s very simple now that a amazon echo device speaks a text triggered by a rule:
rule "Say welcome if the door opens" when Item Door_Contact changed to OPEN then Echo_Living_Room_TTS.sendCommand('Hello World') end
The only thing what you need is to install the current release candidate of my binding which can be downloaded for OH2.2 from the marketplace or download it manually (OH2.2, OH2,3) from my amazonechocontrol thread.
I hope now, that one of the openHAB maintainer (@Kai, @martinvw) find the time to finish the review of my pullrequest before the OH 2.3 is released, so that the binding will be part of the official distribution.
Btw, if there is anybody a native english speaker and want help me to provide a more perfect readme text, I’ am happy for any suggestion.