Clean up a talking-head recording
A talking-head cleanup does one thing: it makes speech sound clean and tight while still sounding like a person. It is the first step of many videos (courses, interviews, podcasts, sales talks) and can also be delivered on its own.
This is a scene recipe: it says how this kind of video is cut well; parameters for every call are in the Cut script reference.
When to use this recipe
Use it when the request asks to “clean it up”, “remove the ums”, “remove fillers”, “cut the pauses” or “tighten this talk”, and the material is mainly one person speaking. With slides, use the course talking-head; with scenery shots, use the narrated montage.
What a good result looks like
| Aspect | Standard |
|---|---|
| Remove | Fillers (嗯, 呃, 啊), verbal tics with no meaning (那个, 就是, 然后呢), repetitions (我我), half-said restarts, pauses over 0.6 s |
| Keep | 就是 or 那个 when they carry meaning (就是这个意思), pauses that carry emphasis or emotion, normal breaths between sentences |
| Breath | Keep 0.2–0.4 s at each cut; never glue sentences together so they sound machine-made |
| Captions | Chinese subtitle conventions, following the edited speech; captions and sound agree |
| Sound | About -14 LUFS overall (the export normalises); no clicks or level jumps at the cuts |
Steps
Run the code below in codemode. Editing scripts go through praxis.cut.projects.execute({ body: { script } }); times inside scripts are seconds.
1. Transcript and topic
Edit once the transcript is ready. With many proper names, write the asset’s context.topic first and transcribe again with praxis.media.libraries.assets.reprocess.create(...) (see step 1 of the course talking-head recipe).
2. Place it in a project
const voice = AddTrack("audio", { name: "Talk", role: "voice" });const talk = Insert(voice, { type: "audio", media: { libraryId, assetId: voiceId }, start: 0, sourceIn: 0, length: "auto" });For a video talk use AddTrack("video") and type: "video"; the deletions below act on the picture as well.
3. List first, then delete
const listed = RemoveFillers(talk, { dryRun: true, minConfidence: 0 });Print(listed.items.map(i => `${i.at.toFixed(1)} ${i.kind} ${i.text} ${i.confidence}`).slice(0, 30));RemoveFillers(talk, { keepPauseMs: 300 });const pauses = GetAnalysis({ libraryId, assetId: voiceId }, "silence") .map(p => ({ start: p.from / 1e6, end: p.to / 1e6 }));DeleteWords(talk, pauses, { keepPauseMs: 300 });Read the dryRun list first. Only minConfidence: 0 lists the items at confidence 0.6: those carry no label and are guesses from the word list, never deleted by default. Check each of them, and every word the user named (such as 就是), in context; for the ones that really carry no meaning, find their words with GetTranscript and pass them to DeleteWords; keep the ones that do (就是这个意思). Pause ranges are source time in microseconds; convert them to seconds for DeleteWords.
4. Captions
const subs = AddTrack("caption", { name: "Captions" });AddCaptionsFromTranscript(subs, talk, { style: { preset: "subtitle-outline" } });Generate captions after the deletions; any later deletion goes through DeleteWords / RemoveFillers, which rebuild the captions. Never edit caption text to remove words.
5. Listen, export
listen to two or three cut points to make sure no word is clipped and the breaths sound natural. Export; read the export’s checks and fix FILLER_REMAINING or CAPTION_TEXT_MISMATCH before exporting again.
Tiers
| Tier | Includes | Done when |
|---|---|---|
| Draft | One-pass filler and pause removal, captions | The draft plays end to end |
| Standard (recommended) | Draft plus reviewing the dryRun list, removing the slips it missed, listening to two or three cuts | The export’s checks are clear |
| Fine | Standard plus listening sentence by sentence and tuning the breath at each cut | The user approves each passage |
Common mistakes
- Only standalone 嗯 removed: fillers also stick to other words, and 就是 or 那个 need context. Use
RemoveFillers, which follows the transcript’s labels, not a word list. - Cut too clean: sentences glued together sound machine-made. Keep 0.2–0.4 s of breath.
- Editing caption text instead of deleting sound: captions and sound disagree and the export reports
CAPTION_TEXT_MISMATCH. - Deleting pauses by timeline time: removing fillers has already moved the timeline; pass pauses in source time to
DeleteWords.
Next steps
- Cut a course talking-head video: when the talk also switches to slides or screen recordings, use this one.
- Cut shorts from a long video: turn the cleaned-up talk into several vertical shorts.
- Captions: caption generation, styles, and import and export in full.