Set the maximum sentence chunk length
max_chunk_length sets the maximum number of characters in each sentence chunk when the server splits buffered text for synthesis.
WebSocket only. max_chunk_length is a field of the WebSocket config message. REST and HTTP streaming do not use it.
Example
In the SDK, configure() takes target_language_code. On the raw wire, the config message field is language_code:
What changes in the output
max_chunk_length is the upper bound on how many characters the server groups into one synthesis unit when it splits long text. The spoken text is unchanged. In a short live test, audio was returned for both 50 and 500, so choose the value from your own listening and timing tests.
Common errors
Related: min_buffer_size controls when buffered text starts processing.