Text to Speech works for shorter text strings but not longer

The TTS says you can use up to 4096 characters. The API works for text strings of a few hundred characters. But, when I try to use 354 character string, the MP3 audio Response always has a size of 443 instead of a much larger number.

Any advice for something I may need to add to the API’s HTTP header or body?

1 Like

Doing some debugging further. Looks like TTS does not like lines of text with carriage returns or line feeds in the text. I added a longer test string without the exception happening.

1 Like