Multilingual Recognition
Multilingual ASR
Run an external multilingual ASR model on clips in different languages and compare WER and CER per language, without claiming support for an untested language or dialect.
Educational content in the form of a scientific draft that needs expert review before being adopted as an academic reference. No experimental result that was not actually run is shown here.
Prerequisites
- A multilingual model, with its license and languages reviewed
- Licensed clips in each language with reference transcripts
- Python with transformers and torch
Tools
- speech-to-text
- wer-cer-calculator
- model-benchmark
Implementation Steps
- Choose the experiment languages and document the data source
- Normalize the reference transcripts for each language
- Run the model and set the language automatically or manually
- Compute WER and CER per language
- Compare the results across languages with caution because of morphological differences
- Analyze language identification errors
- Report untested languages as unsupported
Code
from transformers import pipeline
# The model and its list of languages are the user's responsibility
asr = pipeline("automatic-speech-recognition", model="MODEL_ID")
for path in ["ar.wav", "en.wav"]:
print(path, asr(path)["text"])Expected Results
Performance is expected to vary across languages according to the training data, and direct WER comparison across languages with different morphology is not feasible.
These are educational expectations and not experimental results actually measured.
Project Tests
- Compute CER for cross-language comparison
- Try clips with language switching
- Compare automatic language identification with manual
Experiments
References
- Radford et al.. Robust Speech Recognition via Large-Scale Weak Supervision. arXiv (2022). DOI
- Babu et al.. XLS-R: Self-supervised Cross-lingual Speech Representation Learning at Scale. arXiv (2021). DOI
- Conneau et al.. FLEURS: Few-shot Learning Evaluation of Universal Representations of Speech (2022). Source
- Ardila et al.. Common Voice: A Massively-Multilingual Speech Corpus (2020). Source
Audio processing in the experiments takes place inside your browser. Audio, texts, and conversations are not saved on the server. Privacy Policy
