Attributes
- Provider: google
- Category: Text to Speech
Parameters
| Name | Description | Type | Required | Enums |
|---|---|---|---|---|
| prompt | Optional director or style instruction (tone, pace, emotion, scene). Max 4,000 bytes. Merged with text as “{prompt}: {text}”. Combined prompt + ": " + text must not exceed 8,000 bytes. If you omit prompt, you may embed direction in text using Google’s single-field pattern (e.g. “Say cheerfully: …”) or audio tags. | string | No | - |
| text | Script to be spoken. Required. Max 8,000 bytes when used alone; if prompt is set, combined “{prompt}: {text}” must not exceed 8,000 bytes. When prompt is set, put only the spoken script here (do not repeat style instructions such as “Say cheerfully:” in text). May include inline audio tags such as [whispers], [slow], [fast], [laughs], and [short pause] to steer delivery. | string | Yes | - |
| speakers | Speaker configuration. Required. Length 1 (single voice) or 2 (dialogue). Voice is always set here; there is no top-level voice field. | object[] | Yes | - |
| language_code | Optional BCP-47 language and accent code. Examples: en-us, en-in, cmn-cn, ja-jp, ko-kr, fr-fr. | string | No | - |
Pricing
Unit: $/M chars
| Pricing |
|---|
| $16.1000/M chars |
