Edit original audio
edit_original_audioEdit a clip that plays its ORIGINAL RECORDING (a screen or camera recording with the speaker's own voice, not an AI voice) by its transcript words: cut words out of the video, bring cut words back, mute words, fix a mis-transcribed word, and remove filler words and long pauses. get_clip's original_audio (words, cut_words, muted_words, fillers_left, pauses_left) says which clips this applies to and what is left to clean up. AI-voice clips are refused: change their script with voiceover_batch.
Start with action="list" on the clip: words [{i, text, start (playback seconds; absent when cut), cut?, muted?, filler?}], pauses [{after_word_index, seconds, cut}], cut_seconds. Address words by i (start_word_index, end_word_index inclusive; end defaults to start). Pass both to list only part of a long transcript. Then:
cut (start_word_index, end_word_index?) — remove those words' audio AND video from the clip; the clip gets shorter and every later element moves back with its footage (one inside the cut is cropped or removed). The words stay in the transcript as cut, so restore brings them back.
restore (start_word_index, end_word_index?) — bring back everything cut between those words, inclusive. restore_all — bring back every cut.
remove_fillers — cut every hesitation sound still playing (um, uh, er, ah, hmm, ...). Words like "like" or "you know" are kept: they are often meant.
remove_pauses — shorten every silence of 1 s or more between words to 0.3 s.
list_retakes — find retakes: the speaker abandoned a sentence and said it again ("Click the share- sorry. Click the Export button."). Returns
retakes[{takes: [text of each take], keep: index of the take to keep, reason}]. Lists, repeated steps and emphasis are not retakes. remove_retakes — cut every take that isn't kept (its cue and pause go with it).mute (start_word_index, end_word_index?) / unmute — silence words without cutting them; the video keeps playing.
correct (start_word_index, end_word_index?, text) — fix what the transcript SAYS (a misheard name) without touching the audio. Only the transcript text changes: captions and exports still show the words as recorded. Within one paragraph. To change what is spoken, use an AI voice.
Each write returns what changed (seconds_cut, seconds_restored, removed, words_changed, words_corrected). Undo a cut with restore / restore_all, a mute with unmute; the editor's undo does not revert these writes. Cuts change the clip's duration: re-read element timings before placing timed elements.
Concurrency: clip-scoped mutation — serialize calls on the SAME clip (they rewrite its timing and elements); different clips run in parallel. Not alongside voiceover_batch, update_clips or split_clip on that clip.
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": {
"project_id": "<project_id>",
"clip_index": "<clip_index>",
"action": "<action>"
},
"name": "edit_original_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | correct — what the words should read. | |
| action | Yes | What to do — see the tool description | |
| clip_index | Yes | Zero-based clip index | |
| project_id | Yes | The project ID | |
| end_word_index | No | The last word, inclusive; defaults to start_word_index. | |
| start_word_index | No | cut/restore/mute/unmute/correct (and list): the first word, `i` from list. |