add_narration
Adds an excited voice-over, word-by-word captions, and optional background music to a clip so race answers become shareable vertical videos.
Instructions
Step 2: add an excited voice-over, word-by-word captions and optional background music to a clip made by this server. script = [{"t": seconds_into_video, "text": "line to speak"}, ...] (max 40 lines). music_path is an optional royalty-free audio file you own the rights to (mp3/wav/m4a/ogg/flac). Voices are Microsoft Edge neural voices such as en-US-GuyNeural, en-US-AndrewNeural, en-GB-RyanNeural; the script text is sent to Microsoft's online TTS. Captions sit in a free band that each clip records; caption_y (0.08-0.92, fraction of height from the bottom) overrides it. Needs ffmpeg and edge-tts.
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": {
"video_path": "<video_path>",
"script": "<script>"
},
"name": "add_narration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | +12% | |
| pitch | No | +2Hz | |
| voice | No | en-US-GuyNeural | |
| script | Yes | ||
| caption_y | No | ||
| music_path | No | ||
| video_path | Yes |