VideoIn progress
Recitation Video Pipeline
Source text → whisper transcription → pinyin alignment → word-by-word rendering. Every video in the library came out of it.
- Stack
- whisper · MMS forced alignment · PIL · ffmpeg
In goes a recording and the source text; out comes a video with pinyin and word-by-word highlighted subtitles. In between: fetch and clean the text, transcribe with whisper, align transcript to text, render each character, composite with ffmpeg.
The biggest lesson wasn't about algorithms: when the alignment rate stays stuck, it's usually the wrong edition of the text. Mantras and repeated lines use acoustic forced alignment instead.