Text to speech
text_to_speechConvert written text into spoken audio using selectable voices and adjustable speed. Add narration to VideoGen projects by choosing a voice ID and optional language.
Instructions
Convert text into spoken audio using a selectable voice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to speak. | |
| speed | No | Speech-rate multiplier. | |
| voiceId | Yes | Catalog display name (e.g. Matilda) or voice id from list_tts_voices. | |
| language | No | ISO-639-1 pronunciation language hint. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error details when status is failed; otherwise null. | |
| status | No | Job status: pending, running, succeeded, failed, or cancelled. | |
| results | No | Generated results with download URLs when succeeded. | |
| toolType | No | Tool name (e.g. GENERATE_IMAGE). | |
| attemptIndex | No | Current or latest attempt index. | |
| toolExecutionId | Yes | Tool execution id (vg_tool_...). | |
| progressPercentage | No | Completion progress 0-100 (present after polling). |