属性
参数
| 参数名 | 描述 | 类型 | 必填 | 枚举值 |
|---|---|---|---|---|
| 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 | 否 | - |
| 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 | 是 | - |
| speakers | Speaker configuration. Required. Length 1 (single voice) or 2 (dialogue). Voice is always set here; there is no top-level voice field. | object[] | 是 | - |
| language_code | Optional BCP-47 language and accent code. Examples: en-us, en-in, cmn-cn, ja-jp, ko-kr, fr-fr. | string | 否 | - |
价格
单位: $/M chars
| 价格 |
|---|
| $16.1000/M chars |
