Communitygithub.com

lhg-plugs/lhg-video-edit

Voice-over transcription and text cleaning: ASR route selection (local/cloud cost comparison), per-word timestamp specification, four-step filler word and breath mark cleaning, and cleaning comparison table output. The first step of the editing pipeline: "what is said" must be written down before you can start cutting.

What is lhg-video-edit?

This skill, part of the lhg-video-edit plugin, is the first step in a video editing pipeline: converting voice-over footage into a timestamped, editable, and decision-ready transcript. It provides a complete workflow covering ASR route selection (local vs. cloud, with cost transparency), transcription quality gates, and a four-step text cleaning process (remove filler words, mark breaths/hesitations, correct speech errors, and output a cleaning comparison table). Designed for developers and AI agent users working with platforms like Claude Code, Cursor, or Codex, this skill ensures that "what is said" becomes a precise text artifact before any cutting begins. The skill enforces strict privacy rules for sensitive content (forcing local transcription) and emphasizes a collaborative decision-making process where the cleaning table is always reviewed by the user. It outputs industry-standard per-word timestamps and a cleaning comparison table that serves as input for an edit decision list (EDL), making it a powerful tool for automating the initial, critical step of editing voice-over-based short videos.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/lhg-plugs/lhg-video-edit/tree/HEAD/skills/lhg-ve-transcript

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

lhg-ve-transcript: Voice-Over Transcription and Text Cleaning

Goal: Turn voice-over footage into a "timestamped, editable, and decision-ready" transcript. Core Discipline: Transcript first, edit later — editing without a transcript is like driving with your eyes closed.

1. When to Use

  • Received a piece of voice-over footage that needs to be cut into a short video → run this skill first
  • User says "help me see what this is saying" → transcription + cleaning comparison table
  • Already have a verbatim transcript full of filler words like "um", "like", "you know" → jump directly to Section 4 cleaning

2. Transcription Route Selection

Two routes, no silver bullet; choose based on the material's nature:

RouteTool ExampleCostAccuracyApplicable Scenarios
Localfaster-whisper (MIT Open Source)Zero marginal cost, a bit slowerSufficient for Chinese voice-over; drops with heavy accentsPrivate footage, long footage, budget-sensitive
Cloud Word-levelPay-per-use word-level transcription APIBilled per minute/usage, quote the price to the user before startingMost accurate word-level timestamps, highest cut precisionPublic topics, high cut precision needed, short footage

Privacy Red Line: Cloud transcription = uploading the original audio to a third party. For footage containing unpublished opinions, trade secrets, or personal privacy, must use the local route and explain the differences between the two routes to the user before starting, letting the user decide.

Output requirements (both routes must achieve):

  • Sentence-level timestamps (accurate to 0.1s): [00:12.4-00:18.2] Text content
  • Word-level timestamps when possible (cloud routes have them natively; local routes can be supplemented with word-align tools)
  • Only one speaker (voice-over); speaker diarization is not needed; if there are voice-overs/interviews, mark the second speaker separately

3. Transcription Quality Gates

Check the transcript against these three gates first. If it fails, switch routes or do manual proofreading:

  1. Completeness: Total transcription duration ≈ footage duration (error >5% indicates significant segments missed)
  2. Punctuation Restoration: Long sentences must have commas/periods for segmentation; a whole paragraph without punctuation = subsequent cleaning impossible, reject immediately
  3. Proper Nouns: Randomly check 5 instances of names, brands, numbers ("thirty-five percent"); if more than 2 are wrong, require full manual proofreading

Don't fix transcription errors character by character during transcription — mark them and handle them uniformly during the cleaning stage. Saves time.

4. Four-Step Text Cleaning Process

Step 1: Remove Filler Words (Interjection Library)

High-frequency Chinese voice-over filler word library (ordered by frequency, continuously expanded):

Level 1 (almost always deletable): like, so, you know, um, uh, well, actually, basically
Level 2 (depends on context): basically, honestly, frankly speaking, let me tell you, everyone knows
Level 3 (delete with caution): right? isn't it? (rhetorical questions may be hooks), I think (opinion content may be a stance)

Deletion rules:

  • Consecutive repetitions ("like like") → delete all
  • Filler at start/middle of sentence ("So we...", "...like...then...") → delete, does not affect meaning
  • Level 3 words should be highlighted in yellow first, let the user or editor decide based on context; never batch delete

Step 2: Mark Breaths and Pauses

  • Breath marks (inhale sounds, "um"-style pauses): Mark on timeline as [breath 0.8s]; decide whether to cut or keep during editing (fast pace: cut all; interview feel: can keep)
  • Long pauses (>1.5s silence): Mark as [pause 2.3s] — could be forgetting lines (cut) or intentional pause (keep), must check context
  • Laughter/coughs/plosive pops: Mark as [noise], always candidates for deletion

Step 3: Correct Verbal Slips (Only Fix "Wrong Sayings", Not "Way of Saying")

  • Fix: Obvious verbal slips ("thirty-five percent" said as "thirty-five per" when context is 35%), wrong names, wrong numbers
  • Don't fix: Colloquial expressions (e.g., "super useful" should not be changed to "very useful" — it's style, not an error)
  • Mark doubtful items as [pending confirmation]; never take the liberty to "correct" into a different meaning

Step 4: Output Cleaning Comparison Table

TimeOriginal TextCleaned TextAction
00:12.4like, actually I thinkI thinkRemove Level 1 filler
00:31.0[pause 2.3s](deleted)Forgot line, not intentional pause

Send the comparison table to the user for confirmation — this is the deliverable of this skill and also the input for the EDL.

4.5 Cleaning Decision Quick Reference Table

PhenomenonExampleActionBasis
Level 1 filler"like, actually I think"DeleteDoes not affect meaning
Level 3 filler (rhetorical)"Right? You guys feel the same way, don't you?"Keep and highlight yellowMay be an engagement hook
Breath (fast-paced)0.4s inhale between sentencesCutPrioritize pace
Breath (interview/deep content)0.8s inhale between paragraphsKeepBreathing is style
Long pause (forgetting lines)"Then... uh... we continue"CutNo information value
Long pause (intentional)2s silence after a punchlineKeepEmotion needs pause
Number slip"thirty-five per" (context 35%)Change to "thirty-five percent"Said incorrectly
Colloquial expression"super useful"Don't changeStyle, not error
Repetitive emphasis"very very important"Keep one instanceEmphasis technique

Decision principle: Delete what's "waste", keep what's "flavor". If unsure, highlight yellow and let the user choose — don't decide the blogger's speaking style for them.

5. Honest Cost and Time Explanation

  • Local transcription: 1 hour of footage takes about 5–15 minutes (depends on machine), zero marginal cost
  • Cloud transcription: Pay-per-use; 1 hour of footage usually costs a few to a few dozen dollars (depends on provider and tier). Quote based on the provider's real-time pricing; don't memorize the price
  • Cleaning is detailed work: For 10 minutes of voice-over, the cleaning comparison table plus manual confirmation takes about 10–20 minutes — inform the user of this time, don't let them think "it can be done in one sentence"

6.5 Example of Word-Level Timestamp Format

Word-level timestamps are the foundation of precise editing (cut points can fall between words, not just between sentences). Standard format:

{
  "text": "Results must appear within the first three seconds",
  "start": 12.40,
  "end": 14.10,
  "words": [
    {"word": "Results", "start": 12.40, "end": 12.90},
    {"word": "must", "start": 12.90, "end": 13.20},
    {"word": "appear", "start": 13.20, "end": 13.60},
    {"word": "first three seconds", "start": 13.60, "end": 14.10}
  ]
}

Requirements:

  • Word boundary error ≤ 0.15 seconds, otherwise cut points will "eat" letters (the tail sound of the previous word gets cut off)
  • Numbers and English words are treated as a single word (e.g., "35%", "AI" are not split)
  • Filler words are separate words (e.g., "uh" occupies one word slot), making it easy to delete entire words during cleaning

Dialect and Accent Note: Transcription error rates increase significantly with heavy accents. Don't assume "AI can definitely understand". After transcription, randomly pick 3 segments (30 seconds each) and manually listen to them. If the error rate >10%, do a full manual proofread — this step cannot be skipped.

7. Anti-Patterns

  • ❌ Directly using raw ASR output for editing — filler words and breaths will ruin the pace of the final cut
  • ❌ Batch deleting Level 3 filler words — "right?" might be the only engagement hook in the entire video
  • ❌ Changing "super useful" to "very useful" — that's changing the blogger's voice and persona together
  • ❌ Using cloud transcription without quoting the price first — money is a small issue, trust is a big one
  • ❌ Sending private footage to the cloud — red line; see Section 2

7. Self-Check and Feedback

After each execution of this skill, do a lightweight self-check:

  1. Did you get user confirmation on the cleaning comparison table? → If not confirmed, not done
  2. Were Level 3 filler words highlighted yellow instead of batch deleted? → If deleted, restore them
  3. Was private footage processed via the local route? → If cloud was used, explain to the user

Standard smoke test case: Run video_audit.py with the plugin's built-in fixtures to verify subtitle typos and filler word rules are hit (see repository root smoke_test.py).

Feedback channel: Submit to https://github.com/lhg-plugs/lhg-video-edit/issues with title [QC] <one-sentence problem>, and write down "input → wrong output → expected output" in the body. If the filler word library misses a word, please include the original sentence.

Produced by: Liu Hongguang

This skill is produced by the real-person on-screen IP "Liu Hongguang" (Hefei, Anhui), under lhg-skills.

  • GitHub Homepage: https://github.com/lhg-skills — all skills are open source here, welcome to star
  • Video Channel: Search "Liu Hongguang Official Account" (search in Chinese: 刘洪光实名上网)
  • WeChat: lhgsmsw

Individual skills in this repo

This repo contains 3 individual skills — each has its own dedicated page.

Related Skills