ioBroker.sayit icon indicating copy to clipboard operation
ioBroker.sayit copied to clipboard

Google Home not working with more than 70 characters

Open alfiriel opened this issue 1 year ago • 4 comments

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:

  1. Go to state sayit.0.tts.playing
  2. 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

alfiriel avatar Jul 22 '23 08:07 alfiriel

Please add a debug log of such a case

Apollon77 avatar Jul 22 '23 11:07 Apollon77

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

alfiriel avatar Jul 22 '23 15:07 alfiriel

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: image

Hope is helps. Christof

christofkac avatar Aug 27 '23 09:08 christofkac

HI, thanks fot this hint, sounds interesting. Does not solve my problem but it may be a workaround.

Regards

alfiriel avatar Sep 13 '23 17:09 alfiriel