| name | filler-word-processing |
| description | Process filler word annotations to generate video edit lists. Use when working with timestamp annotations for removing speech disfluencies (um, uh, like, you know) from audio/video content. |
Filler Word Processing
Annotation Format
Typical annotation JSON structure:
[
{"word": "um", "timestamp": 12.5},
{"word": "like", "timestamp": 25.3},
{"word": "you know", "timestamp": 45.8}
]
Converting Annotations to Cut Segments
Each filler word annotation marks when the word starts. To remove it, use word-specific durations since different fillers have different lengths:
json
WORD_DURATIONS = {
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
}
DEFAULT_DURATION =
():
(annotations_file) f:
annotations = json.load(f)
segments = []
ann annotations:
word = ann.get(, ).lower().strip()
timestamp = ann[]
word_duration = WORD_DURATIONS.get(word, DEFAULT_DURATION)
start = (, timestamp - buffer)
end = timestamp + word_duration
segments.append((start, end))
segments