Two-stage Speech-to-transcript-and-translation alignment
mainThis approach is used for aligning spoken audio in one language with a translated transcript in another. It is often more accurate for non-English target languages and complex source languages (e.g., Chinese, Japanese) than single-stage Whisper alignment.
The Two Stages
- Native Alignment: The spoken audio is aligned with the native language transcript (e.g., using the fast
dtwengine). - Semantic Alignment: The resulting timeline is aligned with the translated text using semantic text-to-text alignment. This uses a multilingual text embedding model (defaults to
e5) to produce vector representations of tokens. DTW is then applied over these vector sequences to align the two languages.
Benefits:
- Faster than single-stage Whisper alignment when using the
dtwengine in stage 1. - Higher accuracy for specific language pairs and smaller Whisper models.