WallPanel-Project / wallpanel-android

This project is deprecated; try out this active fork: https://thanksmister.com/wallpanel-android/
Apache License 2.0
207 stars 27 forks source link

TTS feature #25

Open danielperna84 opened 7 years ago

danielperna84 commented 7 years ago

A low-prio idea: make them panels talk! Send some string via REST or MQTT and let the panel use its builtin TTS engine to notify us about whatever acoustically. :)

quadportnick commented 7 years ago

I had some thoughts about sounds in general -- either built in sounds for ease of use (eg, ring a gong or an alarm or something) and/or MPD protocol support for doing fancier stuff. I suppose TTS is a natural extension, there's probably some half decent local library to do that. If it's going to be pulling from Google/etc anyhow Id just suggest the MPD route

danielperna84 commented 7 years ago

I don't know for sure, but I'm pretty confident, that TTS is directly baked into Android. Maybe not just a system.say("foo"), but also not much more complicated then that. MPD would go way beyond that. My practical use case would be, that the motion sensor at the front door (inside the house) would trigger a warning to shut the kitchen window in case I would leave the house. Or something like "the laundry is done" when I pass the panel on the way to the basement.

From the HASS perspective this would just be a REST notify, which the panel then would make audible.

andrewjswan commented 3 years ago

How to play a text other than English? In the phone, Google TTS is configured, the language in the default TTS settings is Russian, the language pack is loaded, the required voice is selected, but if I send a REST command with the Russian text, the phone is silent, if with English it pronounces, if mixed, it pronounces only English phrases.

lamihax commented 3 years ago

I was also wondering how to change the tts language. Can we have language parameter along with "speak" in the message ? Or even better have ..../speak topic with the "message" and "lang" ?