Attributes
- Provider: google
- Category: Text to Speech
Parameters
| Name | Description | Type | Required | Enums |
|---|---|---|---|---|
| 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 | No | - |
| style | Optional single-speaker delivery direction (emotion, pace, tone). Not spoken aloud. Max 8,192 characters, counted together with text. | string | No | - |
| 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 | No | - |
| 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 | No | - |
| speakers | Required for two-speaker synthesis. Exactly two speakers. Omit this field for single-speaker calls. | object[] | No | - |
| 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[] | No | - |
Pricing
Input image ($/img): 0.0000
Input video ($/sec): 0.0000
Unit: $/M chars
| Pricing |
|---|
| $20.0000/M chars |
