Voicelate
voicelate.streamlit.appOverview
A web application that transforms YouTube videos into translated audio using cutting-edge AI technology, supporting 100+ languages with professional-grade speech synthesis.
- Architected and developed a production-ready AI application processing YouTube videos into translated audio across 100+ languages
- Implemented Whisper using faster-whisper integration with smart caching, reducing model load times by 80% and supporting concurrent users
- Built dual-interface system (Web + CLI) using modular Python architecture with comprehensive error handling and user experience optimization
Features
- ๐ฏ YouTube Integration - Direct video processing from YouTube URLs
- ๐ 100+ Languages - Translate to and from virtually any language
- ๐ค AI-Powered - Uses OpenAI Whisper for accurate transcription
- ๐จ Dual Interface - Both web-based and command-line interfaces
- โก Smart Caching - Optimized model loading for faster processing
- ๐ High-Quality Audio - Natural-sounding speech synthesis
- ๐ฑ Responsive Design - Clean, modern web interface
Technical Details
Architecture
- Modular Design - Separated concerns for maintainability
- Caching Strategy - Smart model caching with @st.cache_resource
- Error Handling - Robust error handling throughout
- Performance - Optimized for both speed and quality
Processing Pipeline
- Download - Extract audio from YouTube using yt-dlp
- Transcribe - Convert speech to text using Whisper
- Translate - Translate text using Google Translate
- Synthesize - Generate speech using Google TTS
- Output - Deliver translated audio file
Structures
- 1 Repository
- the app: a Streamlit web interface and a command-line pipeline (Python)
Tech Stack & Libraries
| Layer | Built with |
|---|---|
| Web app | Python ยท Streamlit |
| Transcription | faster-whisper (OpenAI Whisper) |
| Translation | deep-translator (Google Translate) |
| Speech | gTTS (Google Text-to-Speech) |
| Audio | yt-dlp ยท ffmpeg ยท pydub |
| Hosting | Streamlit Community Cloud |
Libraries
- streamlit - Web interface framework
- faster-whisper - AI transcription engine
- deep-translator - Translation service
- gtts - Google Text-to-Speech
- yt-dlp - YouTube audio extraction
- pydub - Audio processing
Architecture
Solid arrows are calls, and the answer comes back on the same line; dashed arrows are sent on their own.
UI Interfaces
The app's English sample video, translated into Indonesian. For these pictures the translation used deep-translator's MyMemory backend, because Google Translate was limiting requests from the computer they were made on.