Hi,
I'm currently using openhab to control an experimental platform (an appartment) in my research lab, and it works really fine.
Among the other equipments, I use 3 Sonos controllers and I want to be able to send TTS messages on the different sonos.
One way to do it, will be to use the input line of the sonos, but I don't like this solution.
I've been able to do it by using the mary tts service to generate a mp3 file, instead of just playing it, with a little dirty trick that checks the third parameter of the the tts say fonction (output device) to choose between playing or generating the sound in a shared folder.
It was really simple to do (a few lines), but it's not a clean way to do it.
Then with a simple rule, I generate the file and send the playuri command to the sonos with the generated file path, and it works really well.
But I think the best way to do it, would be to modify the TTSService Interface to add a function like
generateFile(text, voice, audioFileFormat, filePath).
It's not a really big deal to implement it in the TTS services, and I think it would be usefull.
Do you think it's something acceptable and doable in the project?
Thank you,
Nicolas