zaf/asterisk-googletts

AGI Character Limit

Closed this issue · 1 comments

for the most part the script is working perfectly. We seem to have run into a character limit. I can put in 222 characters and then it cuts the rest. I am watching the console output, and I can see the cut there too. Is there somewhere I can increase that?

zaf commented

There is a word count limit imposed by the API. If you check the code you can see that we try to split the input in chunks up to 99 words big and submit each chunk separately for speech generation (line 125 in the source code). Apart from that API limitation there is no other limit in the length of the text you can generate.