ioBroker.sayit
ioBroker.sayit copied to clipboard
Google Home not working with more than 70 characters
Hello, I am not quite sure if it is a bug or a real limitation. I did not find anything by searching this page.
Describe the bug
When filling the state sayit.0.tts.text with 70 characters or less, everything is working as expected.
When there is a text with more than 70 characters, there is no speek out.
- Log error message: Cannot generate speech file: TypeError: text should be a string
- State "sayit.0.tts.playing" stays "false"
No difference if I fill the state via script or manual.
To Reproduce
Steps to reproduce the behavior:
- Go to state sayit.0.tts.playing
- Fill with text more than 70 characters
Expected behavior
How is it possible to fill in a larger string?
Versions:
- Adapter version: 3.0.5
- JS-Controller version: 4.0.24
- Node version: v20.3.1
- Operating system: Ubuntu 22.04.2 LTS (Kernel: Linux 5.15.0-76-generic)
Can you please help here? Thank you an regards
Please add a debug log of such a case
Instance in debug mode. Log entries:
More than 70 characters:
sayit.0 | Zeit | debug | Nachricht |
---|---|---|---|
sayit.0 | 2023-07-22 17:30:41.333 | error | Cannot generate speech file: TypeError: text should be a string |
sayit.0 | 2023-07-22 17:30:41.331 | info | saying: Erdgeschoss. Lichter aus. Geräte aus. Offene Fenster: keine. Offene Türen: Küche |
70 or less characters:
sayit.0 | Zeit | debug | Nachricht |
---|---|---|---|
sayit.0 | 2023-07-22 17:33:05.376 | debug | Send to google home "192.168.x.x: http://192.168.x.x:8082/sayit.0/tts.mp3?ts=1690039985376 |
sayit.0 | 2023-07-22 17:33:04.756 | info | saying: Erdgeschoss. Lichter aus. Geräte aus. Offene Fenster: keine. Offene 12 |
Hi, the google limitation is to my knowledge simply a given restriction from google. Therefore I switched to Amazon AWS and use Polly since many years. It looks like a service which costs money but with the amount of requests you have in a home environment, it was always free for me. https://aws.amazon.com/de/polly/
SayIt Settings:
Hope is helps. Christof
HI, thanks fot this hint, sounds interesting. Does not solve my problem but it may be a workaround.
Regards