Supergiovane / node-red-contrib-tts-ultimate

This node transforms a text into a speech audio. You can hear the voice natively through Sonos or external players.
MIT License
24 stars 5 forks source link

Interruptions during playback #16

Closed mschoenel closed 3 years ago

mschoenel commented 3 years ago

Since version 1.0.18 it often happens that the spoken text in Amazon Polly is no longer spoken fluently. Longer pauses can be heard during the voice output. Is this possibly due to the new split function?

Supergiovane commented 3 years ago

Hello, yes. If the text is more than 190 chars long, it's splitted. Shorter texts are not affected in any way.

mschoenel commented 3 years ago

OK, thanks, but with Amazon Polly there were no problems with texts longer than 190 characters in the past, right? At least not with me. Now the voice output sounds very bad unfortunately.....

Supergiovane commented 3 years ago

Hi yes there is a problem, an old problem. The node saves the filename on disk and there is a maximum filename lenght. On wich system are you running nodered?

mschoenel commented 3 years ago

Nodered runs on a CCU3, a linux system

Supergiovane commented 3 years ago

Ok, the filename lenght's limit is 255 chars. I can increase a little bit the current 190 chars. Wich is the maximum lenght of the longer of your messages?

mschoenel commented 3 years ago

The length is between 50 and 260 characters

Supergiovane commented 3 years ago

Ok, in the next version, i'll try to increase the chars number to about 220 (i must leave some free chars, because there is a certain amount of tolerance in the splitting process).

mschoenel commented 3 years ago

Thanks, I hope this will help ;-)

Supergiovane commented 3 years ago

V. 1.0.19 is out with a slightly increased limit.

mschoenel commented 3 years ago

Thank you, I'll try this....

mschoenel commented 3 years ago

It works much better since your changes. Thank you very much!

Supergiovane commented 3 years ago

Good. Thank you to you and remember to star my node. :-)

mschoenel commented 3 years ago

Done => Star ;-)