Set Scene Audio
set_scene_audioReplace one scene's AI voice with the user's own recording -- the fallback when the AI voice mispronounces words, handles a regional language or accent badly, or adds gibberish or stray sounds that editing the narration didn't fix. The scene then shows the person speaking the recording, lip-synced, and is exactly as long as it (up to 60s). Pass audio_key or audio_upload_id (see get_audio_upload_page / upload_audio); narration (optional) is what the recording says, so the scene's text and visuals match it. remove=true goes back to the AI voice. Nothing is re-rendered here: on a rendered video apply it with regenerate_scene(mode='narration'), which spends credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remove | No | True: drop the scene's own recording and go back to the AI voice. | |
| scene_id | Yes | The scene's scene_id, from get_video. | |
| video_id | Yes | The video's video_id (from create_video, list_videos or get_video). | |
| audio_key | No | audio_key from upload_audio or get_audio_upload_url. | |
| narration | No | What the recording says, word for word (optional), so the scene's text and visuals match it. | |
| audio_upload_id | No | audio_upload_id from get_audio_upload_page, once the user has uploaded their recording. |