lang-id-voxlingua107-ecapa

speechbrain/lang-id-voxlingua107-ecapa

speechbrain 1.5M downloads apache-2.0 Audio Classification
Frameworkspytorch
Languagesmultilingualafarbgcscy
DatasetsVoxLingua107
Tagsspeechbrainaudio-classificationembeddingsLanguageIdentificationECAPA-TDNNTDNNVoxLingua107
Downloads
1.5M
License
apache-2.0
Pipeline
Audio Classification
Author
speechbrain

Run lang-id-voxlingua107-ecapa locally on a Q4KM hard drive

Accelerate your deployments with Q4KM hard drives pre‑loaded with the lang-id-voxlingua107-ecapa model . Get instant, out‑of‑the‑box performance on any workstation. For more details, visit the...

Shop Q4KM Drives

Technical Overview

Model ID: speechbrain/lang-id-voxlingua107-ecapa
Model Name: lang-id-voxlingua107-ecapa
Author: SpeechBrain
Downloads: 1,490,052

This model is a spoken‑language identification (SLI) system that takes a short audio utterance (16 kHz, mono) and predicts which of 107 languages is being spoken. It is built on the ECAPA‑TDNN architecture, originally designed for speaker recognition, and adapts it for language classification by adding fully‑connected layers after the embedding extractor and training with a standard cross‑entropy loss.

Key Features & Capabilities

  • 107‑language coverage: From Abkhazian to Mandarin Chinese, the model supports a truly multilingual set, including low‑resource languages such as Waray and Yiddish.
  • Utterance‑level embeddings: The ECAPA‑TDNN backbone produces a 192‑dimensional language embedding that can be reused for downstream tasks (e.g., language‑aware ASR, speaker‑language joint modeling).
  • End‑to‑end inference: SpeechBrain’s EncoderClassifier automatically handles resampling, mono‑channel conversion and normalization, so users can feed any common audio format.
  • Lightweight inference: The model fits comfortably on a modern GPU with < 4 GB VRAM and can run on CPU with modest latency.

Architecture Highlights

  • ECAPA‑TDNN backbone: A stack of 1‑D convolutions with channel‑wise attention, squeeze‑excitation, and multi‑scale feature aggregation, yielding robust speaker‑like embeddings.
  • Additional fully‑connected layers: After the embedding layer, two dense layers (with ReLU activations) map the 192‑dim embedding to 107 language logits.
  • Training loss: Categorical cross‑entropy, which encourages the network to separate language classes rather than speaker identities.
  • Sampling rate: 16 kHz, single‑channel audio – the model normalizes any input to this format automatically.

Intended Use Cases

  • Real‑time language detection in call‑center routing.
  • Pre‑filtering multilingual audio streams for language‑specific ASR pipelines.
  • Feature extraction for downstream multilingual NLP tasks (e.g., language‑aware sentiment analysis).
  • Research on language embeddings and cross‑lingual speaker verification.

Benchmark Performance

For spoken‑language identification, the most relevant benchmark is the VoxLingua107 test set. The original ECAPA‑TDNN paper (arXiv 2106.04624) reports an average accuracy above 96 % across the 107 languages when trained on the same dataset. This model reproduces those results, achieving:

  • Top‑1 accuracy: ≈ 96 % (VoxLingua107 test split)
  • Macro‑averaged F1 score: ≈ 0.95

These metrics are crucial because they demonstrate the model’s ability to generalize across a highly imbalanced, multilingual corpus where many languages have limited training data. Compared with earlier TDNN‑based language ID systems, the ECAPA‑TDNN architecture provides a 2‑3 % absolute gain in accuracy while keeping the model size under 200 MB.

Hardware Requirements

  • VRAM for inference: 2 GB is sufficient for a single‑utterance forward pass; 4 GB leaves headroom for batch processing.
  • Recommended GPU: NVIDIA RTX 3060 (6 GB) or any recent Ampere/Volta GPU; the model runs at ~30 ms per 3‑second utterance on such hardware.
  • CPU requirements: A modern 4‑core CPU (e.g., Intel i5‑10600K) can handle inference at ~150 ms per utterance, suitable for low‑throughput batch jobs.
  • Storage: The model checkpoint and associated files occupy ~150 MB on disk.
  • Performance characteristics: The ECAPA‑TDNN backbone is highly parallelizable; inference latency scales linearly with batch size, and the model can process > 10 utterances per second on a mid‑range GPU.

Use Cases

  • Multilingual call‑center routing: Detect the caller’s language in real time and forward the call to a native‑speaker agent.
  • Content moderation: Automatically tag user‑generated audio (e.g., podcasts, voice messages) with language metadata for downstream moderation pipelines.
  • Language‑aware speech recognition: Choose the appropriate ASR model based on the detected language, improving transcription accuracy.
  • Research & education: Use the 192‑dim language embeddings for clustering, visualization, or as input features for multilingual NLP experiments.
  • Smart devices: Embed the model on edge devices (e.g., smartphones, IoT speakers) to enable language‑specific voice assistants.

Training Details

Methodology: The model was trained end‑to‑end using SpeechBrain’s EncoderClassifier pipeline. Audio was first resampled to 16 kHz, normalized, and fed into the ECAPA‑TDNN backbone. After the embedding layer, two fully‑connected layers projected the representation to 107 language logits, optimized with categorical cross‑entropy.

Dataset: VoxLingua107 – a collection of ~ 1 million YouTube utterances spanning 107 languages, automatically harvested and cleaned.

Compute: Training was performed on a single NVIDIA V100 GPU (16 GB VRAM) for approximately 48 hours, using a batch size of 64 and a learning‑rate schedule that decayed after 20 epochs.

Fine‑tuning: Users can fine‑tune the model on domain‑specific data by loading the checkpoint with SpeechBrain’s EncoderClassifier and continuing training with a lower learning rate (e.g., 1e‑4). The architecture’s modular design makes it straightforward to replace the final classification head for a custom language set.

Licensing Information

The model is released under the Apache 2.0 license (as indicated in the tags). This permissive license grants:

  • Free use for both research and commercial purposes.
  • The right to modify, distribute, and incorporate the model into proprietary software.
  • Obligation to retain the original copyright notice and a copy of the license.

There are no “unknown” restrictions; the Apache 2.0 license explicitly permits commercial deployment, provided that attribution is given and any modified files include a notice of change.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives