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
25 stars 5 forks source link

Play longer text #42

Closed dkrasmussen closed 3 years ago

dkrasmussen commented 3 years ago

Hi

Is there a way to play a longer text without splitting it ? using azure tts

/DKR

Supergiovane commented 3 years ago

Hi No. The text is cached as a filename, so it mist be splitted to avoid too long filename!

dkrasmussen commented 3 years ago

why not just use a hash for filename?

/DKR

Supergiovane commented 3 years ago

Yes this should work, but for sone tts engine, there is still a max chars limitation. I recall a long discussion with another user about that. I may rethink to redesign that part. Is there a limitation in azure tts text lenght?

dkrasmussen commented 3 years ago

i dont know, i can try to find out

dkrasmussen commented 3 years ago

https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/speech-services-quotas-and-limits#text-to-speech-quotas-and-limits-per-speech-resource

dkrasmussen commented 3 years ago

are you there?

/DKR

Supergiovane commented 3 years ago

Hi i'm briefly checked the matter. Currently there are many things to "touch" to be able to do that, while mantaining the "old way" usability. Other than that, Azure also does have some lenght limits...

dkrasmussen commented 3 years ago

hi

maby something like a < input > in the tts node "split text after x char, 0=auto (type number)"

and in the code

if (splitTxt == 0) use exsting code else simple hard split after x char, if you want to bi nice, then split at last space :) fi

/DKR

Supergiovane commented 3 years ago

A suitable way can be a setting to comoletely enable/disable split. Would be ok for you?

Supergiovane commented 3 years ago

node-red-contrib-tts-ultimate@1.0.36 is out with settable text lenght. See the README for that.