wav2vec2-xls-r-300m-cv7-turkish

The mpoyraz/wav2vec2-xls-r-300m-cv7-turkish model is a fine‑tuned, high‑performance Automatic Speech Recognition (ASR) system specifically built for the Turkish language. It leverages the powerful

mpoyraz 228K downloads cc-by Speech Recognition
Frameworkstransformerspytorch
Languagestr
Datasetsmozilla-foundation/common_voice_7_0
Tagswav2vec2automatic-speech-recognitionhf-asr-leaderboardmozilla-foundation/common_voice_7_0robust-speech-eventmodel-index
Downloads
228K
License
cc-by
Pipeline
Speech Recognition
Author
mpoyraz

Run wav2vec2-xls-r-300m-cv7-turkish locally on a Q4KM hard drive

Accelerate your deployment with Q4KM hard drives pre‑loaded with the mpoyraz/wav2vec2‑xls‑r‑300m‑cv7‑turkish model, a Turkish language model, and optimized inference scripts. No internet download...

Shop Q4KM Drives

Technical Overview

The mpoyraz/wav2vec2-xls-r-300m-cv7-turkish model is a fine‑tuned, high‑performance Automatic Speech Recognition (ASR) system specifically built for the Turkish language. It leverages the powerful facebook/wav2vec2-xls-r-300m backbone, a 300‑million‑parameter multilingual XLS‑R model, and adapts it to Turkish through extensive fine‑tuning on curated speech corpora.

Key features and capabilities

  • End‑to‑end speech‑to‑text – No external acoustic or language models are required for basic inference.
  • Robust to noisy environments – Trained with mask‑time and mask‑feature augmentations, the model tolerates background chatter and reverberation.
  • Low‑latency inference – The 300 M parameter size strikes a balance between accuracy and speed, making it suitable for real‑time applications on modern GPUs.
  • Turkish‑specific post‑processing – Integrated with the unicode_tr package for proper handling of Turkish diacritics and orthography.

Architecture highlights

  • Base encoder: wav2vec 2.0 XLS‑R 300 M, pre‑trained on 128 languages with self‑supervised learning.
  • Feature extractor frozen during fine‑tuning to preserve learned acoustic representations.
  • Classification head: a linear projection to the Turkish sub‑word vocabulary, trained with CTC loss.
  • Regularization: dropout layers (0.05) on projection, attention, final, and activation stages.

Intended use cases include voice assistants, transcription services, call‑center analytics, and any application that requires accurate, low‑resource Turkish speech recognition. The model’s compatibility with the Hugging Face automatic‑speech‑recognition pipeline enables rapid integration into Python, JavaScript, and mobile environments.


Benchmark Performance

For Turkish ASR, the most relevant benchmarks are Word Error Rate (WER) and Character Error Rate (CER) on public speech corpora. The model has been evaluated on two distinct datasets:

DatasetWERCER
Common Voice 7.0 – Test (TR)8.62 %2.26 %
Robust Speech Event – Dev (TR)30.87 %10.69 %
Robust Speech Event – Test (TR)32.09 %

The Common Voice results demonstrate state‑of‑the‑art performance for a 300 M‑parameter model, rivaling larger multilingual systems while keeping inference lightweight. The higher error rates on the Robust Speech Event set reflect challenging acoustic conditions (e.g., overlapping speech, background noise) and underline the model’s resilience compared to baseline wav2vec 2.0 fine‑tuned without robust augmentation.

Compared to other Turkish ASR models such as facebook/wav2vec2-xls-r-300m (multilingual) or smaller monolingual wav2vec2 variants, the mpoyraz model consistently delivers a lower WER on clean test data, while still maintaining acceptable performance on noisy domains—a key advantage for production deployments.


Hardware Requirements

VRAM for inference: The model’s checkpoint (~1.2 GB) plus the tokenizer and runtime buffers typically require 4 GB of GPU memory for batch size = 1. For larger batch sizes or streaming inference, 6 GB–8 GB is recommended.

Recommended GPU: Any modern NVIDIA GPU with at least 6 GB VRAM (e.g., RTX 2060, GTX 1660 Super) will run the model in real time for short utterances. For high‑throughput batch processing, a RTX 3080 (10 GB) or A100 40 GB provides ample headroom.

CPU requirements: The model can be executed on CPU‑only environments using the torch backend, but inference speed drops to ~1‑2 seconds per 10‑second audio on a 4‑core Intel i7. For latency‑critical services, a GPU is strongly advised.

Storage: The model files (weights, config, tokenizer) occupy roughly 1.5 GB. Including the optional KenLM Turkish language model (≈ 200 MB) brings total storage to ≈ 1.7 GB.

Performance characteristics: On a RTX 3060 (12 GB), the model processes ~30 seconds of audio per second (real‑time factor ≈ 0.03). Memory usage remains stable across varying utterance lengths due to the frozen feature extractor and efficient CTC decoding.


Use Cases

The model’s high accuracy on clean Turkish speech and reasonable robustness to noisy conditions make it suitable for a wide range of applications:

  • Voice assistants & smart speakers – Real‑time command recognition in Turkish‑speaking households.
  • Call‑center analytics – Automatic transcription of customer support calls for sentiment analysis and quality monitoring.
  • Media captioning – Generating subtitles for Turkish podcasts, news broadcasts, and online video platforms.
  • Educational tools – Language learning apps that provide instant feedback on pronunciation and fluency.
  • Healthcare dictation – Hands‑free documentation for Turkish‑speaking clinicians.

Integration is straightforward via the Hugging Face pipeline("automatic-speech-recognition") API, or by exporting the model to ONNX/TensorRT for edge deployment on smartphones or embedded devices.


Training Details

Methodology: The model was fine‑tuned using the Hugging Face Trainer API with a CTC loss function. The feature extractor was frozen to retain the robust acoustic representations learned during self‑supervised pre‑training.

Datasets:

  • Common Voice 7.0 – Turkish – All validated splits except the official test set were used for training, providing a diverse set of speakers and recording conditions.
  • MediaSpeech – An open‑source corpus of Turkish speech that adds further acoustic variety.

Hyper‑parameters (as listed in the README):

  • Learning rate: 2e‑4
  • Epochs: 10
  • Warm‑up steps: 500
  • Mask time probability: 0.1
  • Mask feature probability: 0.05
  • Dropout (feature projection, attention, final, activation): 0.05 each
  • Batch size per device: 8 (gradient accumulation 8 → effective batch size 64)

Compute: Training was performed on a single NVIDIA RTX 3090 (24 GB VRAM) for approximately 10 hours. The frozen feature extractor reduces GPU memory pressure, allowing a batch size of 8 per GPU.

Fine‑tuning capabilities: Users can continue training on domain‑specific Turkish corpora (e.g., medical or legal speech) by unfreezing the feature extractor and adjusting the learning rate schedule. The provided wav2vec2‑turkish repository contains custom data loaders that simplify further adaptation.


Licensing Information

The README lists the license as CC‑BY‑4.0 (Creative Commons Attribution 4.0 International). However, the Hugging Face metadata shows an unknown license tag. In practice, the CC‑BY‑4.0 terms apply to the model weights and the associated language model.

What CC‑BY‑4.0 allows: You may share (copy and redistribute) and adapt (remix, transform, build upon) the model for any purpose, including commercial use, provided you give appropriate credit to the original author (mpoyraz) and indicate if changes were made.

Commercial usage: The license explicitly permits commercial exploitation. Companies can embed the model in products, SaaS platforms, or on‑device applications, as long as attribution is retained in documentation or UI.

Restrictions & requirements: No additional restrictions (e.g., share‑alike) are imposed. You must:

  • Include a citation or link to the model card.
  • State any modifications you performed.
  • Not imply endorsement by the original author.

If you plan to redistribute the model with a different license, you must obtain explicit permission from the author, because CC‑BY‑4.0 does not allow relicensing without consent.


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