๐ŸŽ™๏ธ Enhanced Speech-to-Speech Translation

Advanced AI-powered speech translation between English and French

Powered by Whisper, NLLB, and MMS-TTS models

๐Ÿ“ฅ Input Configuration

๐Ÿ“ข Source Language
๐ŸŽฏ Target Language

๐Ÿง  Model Selection

Model Size

TINY - Size: 76 MB, Speed: Very Fast, Accuracy: Good

Model Size

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:

  1. ๐ŸŽค Speech Recognition: Converts your speech to text using OpenAI's Whisper models
  2. ๐Ÿ”„ Translation: Translates the text using Meta's NLLB model
  3. ๐Ÿ”Š 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