๐๏ธ Enhanced Speech-to-Speech Translation
Advanced AI-powered speech translation between English and French
Powered by Whisper, NLLB, and MMS-TTS models
๐ฅ Input Configuration
๐ง Model Selection
TINY - Size: 76 MB, Speed: Very Fast, Accuracy: Good
600M - 600M parameters, Speed: Fast, Accuracy: Good
Whisper Parameters
1 10
0 1
Translation Parameters
1 8
Speech Synthesis
0.5 2
๐ค Results
๐ฏ What This App Does
This application provides complete speech-to-speech translation between English and French using state-of-the-art AI models:
- ๐ค Speech Recognition: Converts your speech to text using OpenAI's Whisper models
- ๐ Translation: Translates the text using Meta's NLLB model
- ๐ Speech Synthesis: Converts translated text back to natural speech using MMS-TTS
๐ง Models Used
- Whisper Models: OpenAI's Whisper speech recognition (standard models)
- Available: tiny (39MB), base (74MB), small (244MB)
- Note: Using standard models for compatibility with faster-whisper
- NLLB (Meta): Neural machine translation supporting 200+ languages
- MMS-TTS (Meta): Multilingual text-to-speech synthesis
๐๏ธ Advanced Controls
- Beam Size: Controls search breadth for better quality
- Temperature: Adds randomness to outputs
- Speaking Rate: Adjusts playback speed of generated speech
๐ก Tips for Best Results
- Speak clearly with minimal background noise
- Use shorter audio clips (under 30 seconds) for faster processing
- Try different model sizes based on your quality vs speed needs
๐ Model Performance
| Model | Size | Speed | Accuracy | Best For | Status |
|---|---|---|---|---|---|
| Whisper Tiny | 39MB | Very Fast | Good | Quick demos | โ Available |
| Whisper Base | 74MB | Fast | Better | General use | โ Available |
| Whisper Small | 244MB | Medium | Good | Quality balance | โ Available |
| Whisper Medium | 769MB | Slow | Very Good | High accuracy | โ ๏ธ Use if needed |
| NLLB 600M | 623MB | Fast | Good | Quick translation | โ Available |
| NLLB 1.3B | 1.4GB | Medium | Better | High quality | โ Available |
๐ Model Sources
Models used in this application:
- Whisper Models: Standard OpenAI Whisper models (auto-downloaded by faster-whisper)
- NLLB Translation Models: From your repository pruthvi423/speech-translation-models
- Note: PyTorch .pt files require conversion to CTranslate2 format for faster-whisper compatibility
- License: Apache 2.0
- Optimization: Models are optimized with CTranslate2 for faster inference
๐ Built with Gradio โข Powered by OpenAI Whisper & Meta NLLB โข Open Source
Supports English โ French translation with high-quality AI models