A comprehensive, modular Gradio-based web interface for speech-to-text transcription supporting multiple STT engines including OpenAI Whisper, Wav2Vec2, HuBERT Arabic, Tawasul, Vosk, and Coqui STT models.
# Essential models (Whisper + Wav2Vec2)
python setup.py --profile essential --test
# Or specific models
python setup.py --profile whisper-only --test
python setup.py --profile wav2vec2-only --test
# Base installation (Whisper + Wav2Vec2)
pip install -r requirements.txt
# Specific model installations
pip install -r requirements_whisper.txt # OpenAI Whisper only
pip install -r requirements_wav2vec2.txt # Wav2Vec2 only
pip install -r requirements_hubert.txt # HuBERT Arabic only
pip install -r requirements_tawasul.txt # Tawasul Arabic only
pip install -r requirements_vosk.txt # Vosk offline only
pip install -r requirements_coqui.txt # Coqui STT only
# Or install with specific extras
pip install -e .[essential] # Whisper + Wav2Vec2
pip install -e .[all-stt] # All models
| Model | Language | Size | Type | Quality | Features |
|---|---|---|---|---|---|
| Whisper Tiny | Multilingual | 39MB | Local/API | Fast | General purpose |
| Whisper Base | Multilingual | 142MB | Local/API | Good | General purpose |
| Whisper Medium | Multilingual | 1.5GB | Local/API | Better | General purpose |
| Whisper Large | Multilingual | 2.9GB | Local/API | Best | General purpose |
| Wav2Vec2 Arabic | Arabic | 1.2GB | Local | Excellent | Arabic dialects |
| HuBERT Arabic | Arabic Egyptian | 1.2GB | Local | Excellent | Egyptian dialect |
| Tawasul V0 | Arabic | 800MB | Local | Very Good | Arabic speech, Static class |
| Vosk | Multilingual | 50MB-1.8GB | Local/Offline | Good | Offline capable |
| Coqui STT | Multilingual | 180MB-2GB | Local | Good | Open source |
python gradio_voice_transcriber_clean.py
Some experimental models require HuggingFace authentication:
# Option 1: Use helper script
python setup_hf_auth.py
# Option 2: Manual login
pip install huggingface-hub
huggingface-cli login
# Option 3: Use token in interface
# Get token from: https://huggingface.co/settings/tokens
# Enter in "HuggingFace Token" field
The system is designed to be easily extensible:
BaseSTT in stt/your_model.pySTT_MODELS in gradio_voice_transcriber_clean.pyget_model_options() methodSee STT_INTEGRATION_GUIDE.md for detailed instructions.
The enhanced interface (gradio_voice_transcript_temp.py) includes:
Some models (like TawasulSTT) use static class implementation for:
Different STT models store their files in various locations:
| Model Type | Storage Location | Description |
|---|---|---|
| Hugging Face Models | ~/.cache/huggingface/ | Wav2Vec2, HuBERT, Tawasul models |
| Whisper Models | ~/.cache/whisper/ | OpenAI Whisper model files |
| Vosk Models | ~/.vosk/models/ | Offline Vosk language models |
| Coqui Models | Managed by model manager | Coqui STT model files |
STT-trails/
βββ gradio_voice_transcriber.py # Main comprehensive interface
βββ gradio_voice_transcript_temp.py # Enhanced interface with image gallery
βββ stt/ # STT implementations
β βββ stt_base.py # Base class for all STT models
β βββ whisper_stt.py # OpenAI Whisper implementation
β βββ wav2vec2_arabic_stt.py # Wav2Vec2 Arabic model
β βββ hubert_arabic_stt.py # HuBERT Arabic dialect model
β βββ tawasul_stt.py # Tawasul Arabic model (static class)
β βββ vosk_stt.py # Vosk offline STT
β βββ coqui_stt.py # Coqui open-source STT
β βββ example_custom_stt.py # Template for new models
βββ setup.py # Installation helper
βββ setup_hf_auth.py # HuggingFace authentication helper
βββ test_*.py # Model testing scripts
βββ requirements*.txt # Dependencies for each model
βββ recordings/ # Audio recordings directory
βββ INSTALL.md # Detailed installation guide
βββ STT_INTEGRATION_GUIDE.md # Developer integration guide
βββ pyproject.toml # Project configuration
# Test specific models
python test_whisper_local.py # Test Whisper models
python test_wav2vec2_arabic.py # Test Wav2Vec2 Arabic
python test_hubert_arabic.py # Test HuBERT Arabic
python test_tawasul.py # Test Tawasul Arabic
python test_vosk.py # Test Vosk offline STT
python test_coqui.py # Test Coqui STT
# Test installation
python setup.py --profile essential --test
# Run the interface
python gradio_voice_transcriber.py # Main interface
python gradio_voice_transcript_temp.py # Interface with image gallery
setup_hf_auth.py or manual tokenThis project is open source. See individual model licenses:
Made with β€οΈ for the speech recognition community
A comprehensive, modular Gradio-based web interface for speech-to-text transcription supporting multiple STT engines including OpenAI Whisper, Wav2Vec2, HuBERT Arabic, Tawasul, Vosk, and Coqui STT models.
# Essential models (Whisper + Wav2Vec2)
python setup.py --profile essential --test
# Or specific models
python setup.py --profile whisper-only --test
python setup.py --profile wav2vec2-only --test
# Base installation (Whisper + Wav2Vec2)
pip install -r requirements.txt
# Specific model installations
pip install -r requirements_whisper.txt # OpenAI Whisper only
pip install -r requirements_wav2vec2.txt # Wav2Vec2 only
pip install -r requirements_hubert.txt # HuBERT Arabic only
pip install -r requirements_tawasul.txt # Tawasul Arabic only
pip install -r requirements_vosk.txt # Vosk offline only
pip install -r requirements_coqui.txt # Coqui STT only
# Or install with specific extras
pip install -e .[essential] # Whisper + Wav2Vec2
pip install -e .[all-stt] # All models
| Model | Language | Size | Type | Quality | Features |
|---|---|---|---|---|---|
| Whisper Tiny | Multilingual | 39MB | Local/API | Fast | General purpose |
| Whisper Base | Multilingual | 142MB | Local/API | Good | General purpose |
| Whisper Medium | Multilingual | 1.5GB | Local/API | Better | General purpose |
| Whisper Large | Multilingual | 2.9GB | Local/API | Best | General purpose |
| Wav2Vec2 Arabic | Arabic | 1.2GB | Local | Excellent | Arabic dialects |
| HuBERT Arabic | Arabic Egyptian | 1.2GB | Local | Excellent | Egyptian dialect |
| Tawasul V0 | Arabic | 800MB | Local | Very Good | Arabic speech, Static class |
| Vosk | Multilingual | 50MB-1.8GB | Local/Offline | Good | Offline capable |
| Coqui STT | Multilingual | 180MB-2GB | Local | Good | Open source |
python gradio_voice_transcriber_clean.py
Some experimental models require HuggingFace authentication:
# Option 1: Use helper script
python setup_hf_auth.py
# Option 2: Manual login
pip install huggingface-hub
huggingface-cli login
# Option 3: Use token in interface
# Get token from: https://huggingface.co/settings/tokens
# Enter in "HuggingFace Token" field
The system is designed to be easily extensible:
BaseSTT in stt/your_model.pySTT_MODELS in gradio_voice_transcriber_clean.pyget_model_options() methodSee STT_INTEGRATION_GUIDE.md for detailed instructions.
The enhanced interface (gradio_voice_transcript_temp.py) includes:
Some models (like TawasulSTT) use static class implementation for:
Different STT models store their files in various locations:
| Model Type | Storage Location | Description |
|---|---|---|
| Hugging Face Models | ~/.cache/huggingface/ | Wav2Vec2, HuBERT, Tawasul models |
| Whisper Models | ~/.cache/whisper/ | OpenAI Whisper model files |
| Vosk Models | ~/.vosk/models/ | Offline Vosk language models |
| Coqui Models | Managed by model manager | Coqui STT model files |
STT-trails/
βββ gradio_voice_transcriber.py # Main comprehensive interface
βββ gradio_voice_transcript_temp.py # Enhanced interface with image gallery
βββ stt/ # STT implementations
β βββ stt_base.py # Base class for all STT models
β βββ whisper_stt.py # OpenAI Whisper implementation
β βββ wav2vec2_arabic_stt.py # Wav2Vec2 Arabic model
β βββ hubert_arabic_stt.py # HuBERT Arabic dialect model
β βββ tawasul_stt.py # Tawasul Arabic model (static class)
β βββ vosk_stt.py # Vosk offline STT
β βββ coqui_stt.py # Coqui open-source STT
β βββ example_custom_stt.py # Template for new models
βββ setup.py # Installation helper
βββ setup_hf_auth.py # HuggingFace authentication helper
βββ test_*.py # Model testing scripts
βββ requirements*.txt # Dependencies for each model
βββ recordings/ # Audio recordings directory
βββ INSTALL.md # Detailed installation guide
βββ STT_INTEGRATION_GUIDE.md # Developer integration guide
βββ pyproject.toml # Project configuration
# Test specific models
python test_whisper_local.py # Test Whisper models
python test_wav2vec2_arabic.py # Test Wav2Vec2 Arabic
python test_hubert_arabic.py # Test HuBERT Arabic
python test_tawasul.py # Test Tawasul Arabic
python test_vosk.py # Test Vosk offline STT
python test_coqui.py # Test Coqui STT
# Test installation
python setup.py --profile essential --test
# Run the interface
python gradio_voice_transcriber.py # Main interface
python gradio_voice_transcript_temp.py # Interface with image gallery
setup_hf_auth.py or manual tokenThis project is open source. See individual model licenses:
Made with β€οΈ for the speech recognition community