zaf / asterisk-googletts

Asterisk AGI script that uses Google's translate text to speech service.
GNU General Public License v2.0
214 stars 125 forks source link

AGI Character Limit #14

Closed paken7620 closed 9 years ago

paken7620 commented 9 years ago

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 9 years ago

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.