How nunnajaswant-ship-it/uncertainty-aware-hmm-speech-translation works
This repository is a CPU-based English-speech-to-German-text research prototype. Its main workflow extracts MFCC features, trains a GMM-HMM recognizer, decodes English text, aligns English/German sentence pairs, and translates English into German; an optional reliability-augmented HMM supplies posterior frame weights to decoding. Evaluation reports recognition and translation metrics, including the reliability ablation. The graph follows the README’s workflow and documented capabilities; unsampled module internals and runtime wiring are not inferred beyond those statements.
Main entry points: run_all.py Study workflow · decode.py Lexicon-tree decoder · train_acoustic.py Acoustic training · train_alignment.py Alignment training
Components 22
Data and features
- CoVoST-2 access
src/common.py - MFCC features
src/features.py - Feature preparation
scripts/build_features.py
Speech recognition
- Acoustic training
scripts/train_acoustic.py - GMM-HMM model
src/acoustic.py - Diagonal GMM
src/gmm.py - HMM inference
src/hmm.py - Pronunciation lexicon
src/lexicon.py - English bigram LM
src/lm.py - Lexicon-tree decoder
src/decode.py - RA-HMM weights
src/reliability.py
Word translation
- Alignment training
scripts/train_alignment.py - IBM1 and HMM alignment
src/align.py - Monotone translator
src/translate.py - German trigram LM
src/lm.py - Text normalization
src/textnorm.py
Research evaluation
- WER BLEU chrF
src/eval.py - Recognition evaluation
scripts/decode_eval.py - Reliability experiments
scripts/run_reliability.py - Translation evaluation
scripts/translate_eval.py - Study workflow
scripts/run_all.py
Other components
- English audio
Connections 29
- English audio → CoVoST-2 access: provides recordings
README.md - CoVoST-2 access → Feature preparation: streams dataset
README.md - Feature preparation → MFCC features: builds features
README.md - MFCC features → Acoustic training: trains from
README.md - Acoustic training → GMM-HMM model: fits model
README.md - GMM-HMM model → Diagonal GMM: contains emissions
src/acoustic.py - Acoustic training → HMM inference: supports soft EM
README.md - GMM-HMM model → Lexicon-tree decoder: scores phones
src/decode.py - Pronunciation lexicon → Lexicon-tree decoder: builds pronunciations
README.md - English bigram LM → Lexicon-tree decoder: scores word sequences
README.md - RA-HMM weights → Lexicon-tree decoder: weights frames
README.md - CoVoST-2 access → Alignment training: supplies sentence pairs
README.md - Alignment training → IBM1 and HMM alignment: trains alignment
README.md - IBM1 and HMM alignment → Monotone translator: initializes lexical table
README.md - Alignment training → Monotone translator: trains translation
README.md - Monotone translator → German trigram LM: scores German output
README.md - Text normalization → Pronunciation lexicon: normalizes tokens
src/lexicon.py - Study workflow → Feature preparation: runs features
README.md - Study workflow → Acoustic training: runs acoustic stage
README.md - Study workflow → Alignment training: runs alignment stage
README.md - Study workflow → Reliability experiments: runs reliability stage
README.md - Study workflow → Recognition evaluation: runs decoding stage
README.md - Study workflow → Translation evaluation: runs translation stage
README.md - Recognition evaluation → Lexicon-tree decoder: decodes speech
scripts/decode_eval.py - Recognition evaluation → WER BLEU chrF: scores recognition
scripts/decode_eval.py - Reliability experiments → RA-HMM weights: evaluates weights
scripts/run_reliability.py - Reliability experiments → Lexicon-tree decoder: compares decoding
scripts/run_reliability.py - Translation evaluation → Monotone translator: evaluates translation
scripts/translate_eval.py - Translation evaluation → WER BLEU chrF: computes metrics
scripts/translate_eval.py