set_character_voice
Attach a preset Gemini TTS voice to a Flow character for auto-lipsync in future videos.
Synthesizes a short reference audio in the chosen voice and attaches its media_id to
the character's `audio_references`. This is a ONE-TIME setup per character: any
subsequent video generation that references this character will auto-lipsync with this
voice (same mechanism Flow Web uses when you set a voice via its UI).
Calling it again overwrites the voice. Pass sample_text=null for a short default sample
— only the resulting audio is kept as a reference; the content of the text is not used
for later videos.
character_id: entityId from create_character / create_character_from_photo.
account: Google account email that owns this character.
voice: one of list_voices() (default "Algieba").
style: optional delivery hint, e.g. "calm, slow".
sample_text: optional short sentence; default is a short neutral Russian sentence.
project_id: optional project; omit for the account's default.
Returns {entity_id, voice, media_id, audio_url, duration_sec_estimate, audio_references}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | ||
| voice | No | Algieba | |
| account | Yes | ||
| project_id | No | ||
| sample_text | No | ||
| character_id | Yes |