google/gemini-3.8-flash-tts

文档
Schema

[Core Function] Gemini 3.8 Flash TTS is Google's controllable text-to-speech model, currently in Preview. [Strengths] Single-speaker and two-speaker dialogue, preset voices, 130 languages via language_code, and expressive delivery through turn-level style and inline vocal tags. Output is WAV (24 kHz mono PCM). [Best For] Voiceovers, audiobook narration, multilingual speech, podcast-style scripts, and two-person dialogue. [Limitations] Do NOT use this for streaming, voice creation, lip-syncing existing video, music or sound-effect generation, image or audio inputs, MP3/OGG export, or API-level speed, volume, encoding, or sample-rate controls. Dialogue requires exactly two speakers with preset voices. Combined text and style must stay within 8,192 Unicode characters. [Routing] Route here for expressive Gemini TTS with per-turn style control; for the prompt-based request format use Gemini 3.1 Flash TTS; for video with native audio use Veo.

$20.0000/M chars
text-to-speech

输入

Optional BCP-47 language tag in lowercase. Examples: en-us, cmn-cn, ja-jp. The model can also detect the language from the transcript.
Optional single-speaker delivery direction (emotion, pace, tone). Not spoken aloud. Max 8,192 characters, counted together with text.
Verbatim transcript for single-speaker synthesis. Required in single-speaker mode. Do not include stage directions here. Inline vocal events use angle brackets. Together with style, the request must stay within 8,192 characters.
Required for single-speaker synthesis. Prebuilt voice name, extended voice-library ID, or a designed/replicated voice ID (voice_... or voicekey_...). No spaces. Max 256 characters.
Required for two-speaker synthesis. Exactly two speakers. Omit this field for single-speaker calls.
第 1 项
speaker*

Speaker name used by turns. Alphanumeric, 1-64 characters.

voice*

Preset Gemini voice name for this speaker, such as Puck or Kore. Designed or replicated voices (voice_... or voicekey_...) are not supported in dialogue.

第 2 项
speaker*

Speaker name used by turns. Alphanumeric, 1-64 characters.

voice*

Preset Gemini voice name for this speaker, such as Puck or Kore. Designed or replicated voices (voice_... or voicekey_...) are not supported in dialogue.

Required for two-speaker synthesis. One object per spoken turn, in order. Each speaker must match a name in speakers, case-sensitively. All turns produce one WAV file. The sum of all turn text and trimmed style must stay within 8,192 Unicode characters.
第 1 项
speaker*

Which configured speaker says this turn.

style

Optional delivery direction for this turn only. Not spoken aloud.

text*

Verbatim line for this turn.

结果

暂无结果

运行模型后,结果将在这里显示。

Next:

README

属性

参数

参数名 描述 类型 必填 枚举值
language_code Optional BCP-47 language tag in lowercase. Examples: en-us, cmn-cn, ja-jp. The model can also detect the language from the transcript. string 否 -
style Optional single-speaker delivery direction (emotion, pace, tone). Not spoken aloud. Max 8,192 characters, counted together with text. string 否 -
text Verbatim transcript for single-speaker synthesis. Required in single-speaker mode. Do not include stage directions here. Inline vocal events use angle brackets. Together with style, the request must stay within 8,192 characters. string 否 -
voice Required for single-speaker synthesis. Prebuilt voice name, extended voice-library ID, or a designed/replicated voice ID (voice_… or voicekey_…). No spaces. Max 256 characters. string 否 -
speakers Required for two-speaker synthesis. Exactly two speakers. Omit this field for single-speaker calls. object[] 否 -
turns Required for two-speaker synthesis. One object per spoken turn, in order. Each speaker must match a name in speakers, case-sensitively. All turns produce one WAV file. The sum of all turn text and trimmed style must stay within 8,192 Unicode characters. object[] 否 -

价格

输入图片($/img): 0.0000
输入视频($/sec): 0.0000

单位: $/M chars

价格
$20.0000/M chars