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.

Advanced

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

  1. Choose the experiment languages and document the data source
  2. Normalize the reference transcripts for each language
  3. Run the model and set the language automatically or manually
  4. Compute WER and CER per language
  5. Compare the results across languages with caution because of morphological differences
  6. Analyze language identification errors
  7. Report untested languages as unsupported

Code

JavaScript / PythonIllustrative, not implemented in testing
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

References

  1. Radford et al.. Robust Speech Recognition via Large-Scale Weak Supervision. arXiv (2022). DOI
  2. Babu et al.. XLS-R: Self-supervised Cross-lingual Speech Representation Learning at Scale. arXiv (2021). DOI
  3. Conneau et al.. FLEURS: Few-shot Learning Evaluation of Universal Representations of Speech (2022). Source
  4. 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