Overview of Whisper Diarization Pipeline
mainThis project is a speaker diarization pipeline that combines OpenAI Whisper ASR with Voice Activity Detection (VAD) and Speaker Embedding.
The pipeline workflow is as follows:
- Vocal Extraction: Vocals are extracted from the audio to improve speaker embedding accuracy.
- Transcription: Whisper generates the initial transcription.
- Alignment: Timestamps are corrected and aligned using
ctc-forced-alignerto minimize diarization errors caused by time shifts. - VAD & Segmentation: Audio is passed through MarbleNet for VAD and segmentation to exclude silences.
- Embedding Extraction: TitaNet extracts speaker embeddings to identify speakers for each segment.
- Association & Realignment: Results are associated with
ctc-forced-alignertimestamps to detect the speaker for each word, then realigned using punctuation models to compensate for minor time shifts.