Generate voiceover audio
pedra_generate_voiceConvert a script into a text-to-speech voiceover and return an audioId to attach as narration with synced subtitles when creating or updating a video.
Instructions
Render a voiceover from a script via text-to-speech. Returns an audioId — pass it to pedra_create_video / pedra_update_video as voice.audioId to attach the narration (with synced subtitles).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "pedra_generate_voice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The script to narrate (max 1000 characters). | |
| voiceId | No | Which voice narrates. Call pedra_music_library for the voices offered per language — a voice is only valid for the language it is listed under. Defaults to that language's first voice. | |
| language | No | Voice language, e.g. "English", "Español". Defaults to English. |