Hi,
I generate long French narrations (10-20 min) with gemini-3.8-flash-tts, sending the whole script in a single request (AI Studio Interactions API and Vertex AI generateContent, same result).
Problem: the voice (pitch, timbre) audibly changes about every 1 min 50 s, then stays on the new version until the next change.
What I measured:
- The changes happen every ~1,900-1,950 characters of text, i.e. ~500 input tokens (countTokens: 506 and 497 tokens for two segments), always at a sentence boundary, even in the middle of a paragraph.
- If I remove the first 3 paragraphs, the change moves: it no longer happens on the same sentence, but again ~500 tokens into the new text. So it depends on text length, not on content.
- Same behavior with prebuilt voices (Charon, fr-fr-podcaster-12…), a designed voice (voice_…), short or empty style, temperature 0 with a fixed seed, and other models (2.5 Flash TTS, 3.8 Flash Lite TTS, 3.1 Flash TTS preview). Also reproduced in the AI Studio UI.
- Model limits are 8,192 input / 16,384 output tokens, yet a single request returned 11 min 49 s of audio (AI Studio) and 61 min (Vertex), so the service seems to split the text into ~500-token chunks and generate each chunk independently.
Questions:
1. Is this internal chunking documented, and is the chunk size fixed?
2. Is there a parameter to carry the voice/acoustic context from one chunk to the next, or to get a consistent voice across a long request?
3. If not, what is the recommended way to produce long-form narration (15-60 min) with a stable voice?
Thanks.