Weilbyte / tiktok-tts

Generate TikTok Text-to-Speech voices in your browser
https://weilbyte.github.io/tiktok-tts/
MIT License
393 stars 85 forks source link

TTS_CHAR_LIMIT too high #14

Closed kay-es closed 1 year ago

kay-es commented 1 year ago

TTS_CHAR_LIMIT should rather be 299 instead of 300. Thanks for your sample!

Weilbyte commented 1 year ago

It seems like 300 is the correct limit from my testing. Extending the maxlength to 301 and submitting will give an error. What text are you specifically getting an error with?

Weilbyte commented 1 year ago

I have figured it out, it is a 300-byte limit.

Weilbyte commented 1 year ago

Server-side and client-side character limits have been implemented (300 bytes)