πΉπ³ Tunisian STT β Automatic Speech Recognition
Tunisian STT is a high-quality Automatic Speech Recognition (ASR) system dedicated to the Tunisian Arabic dialect. The model is designed for real-world usage and supports code-switching, enabling robust recognition of Tunisian Arabic mixed with French and English terms.
This repository provides production-ready speech-to-text models along with a language model (ARPA format), making it suitable for research, prototyping, and deployment across multiple platforms.
β¨ Key Features
- ποΈ Native support for Tunisian Arabic dialect
- π Robust handling of code-switching (ArabicβFrenchβEnglish)
- β‘ Optimized variants for mobile and embedded devices
- π§ Powered by Kaldi TDNN architecture
- π¦ Ready-to-use with Vosk
π¦ Available Models
This repository includes two acoustic model variants:
STT_Tun_ModelThe full-scale, high-accuracy model suitable for servers and desktop environments.android-modelA lightweight version with a simplified decoding graph, optimized for Android, Raspberry Pi, and edge devices.
Both models are shipped with a language model (ARPA) for decoding.
π§ Model Overview
- Model Type: TDNN (Time-Delay Neural Network)
- Framework: Kaldi
- Primary Language: Tunisian Arabic
- Task: Automatic Speech Recognition (ASR)
π Performance Benchmarks
The table below reports Character Error Rate (CER) and Word Error Rate (WER) across multiple Tunisian speech datasets:
| Dataset | CER | WER |
|---|---|---|
| OneStory | 1.53% | 4.47% |
| YouTube_TN_Scraped_V1 | 25.39% | 37.51% |
| TARIC | 10.60% | 16.06% |
| TunSwitchTO | 11.13% | 22.54% |
| TunSwitchCS | 17.72% | 20.51% |
| ApprendreLeTunisien | 11.81% | 23.27% |
Note: Performance varies depending on recording quality, speaker accent, and code-switching density.
ποΈ Training Pipeline
The model was trained using the official Kaldi-based training pipeline available here:
β‘οΈ Training Code: ASR_train_kaldi_tunisian
ποΈ Training Datasets
The acoustic model was trained on a diverse collection of Tunisian Arabic speech datasets:
TARIC Real-world speech recordings collected in Tunisian train stations.
LinTO Dataset β Audio for Tunisian Arabic A curated corpus of annotated Tunisian dialect speech sourced from Hugging Face, YouTube, and web data.
LinTO Dataset β Augmented Version An enhanced dataset with data augmentation techniques including noise robustness and voice conversion.
π Getting Started
1οΈβ£ Download the Model
Option A β Hugging Face Website
- Visit the model page: π https://huggingface.co/Sali7a8603/Tunisian_STT
- Click Download ZIP to retrieve the desired model.
Option B β Command Line (Recommended)
sudo apt-get install curl
curl -L https://huggingface.co/Sali7a8603/Tunisian_STT/resolve/main/STT_Tun_Model.zip \
--output STT_Tun_Model.zip
Replace
STT_Tun_Model.zipwithandroid-model.zipif needed.
2οΈβ£ Extract the Model
mkdir tunisian_stt_model
unzip STT_Tun_Model.zip -d tunisian_stt_model
3οΈβ£ Run Test (Python)
Install Dependencies
pip install vosk
Run Speech-to-Text
python testing.py <path/to/model> <path/to/audio.wav>
The output will be the transcribed text in Tunisian Arabic, with support for embedded French and English terms.
π License
This project is released under the Apache 2.0 License, allowing both academic and commercial usage.
π€ Contributions & Feedback
Contributions, issues, and feature requests are welcome. If you use this model in your research or product, a citation or acknowledgment would be appreciated.