Voicelate

voicelate.streamlit.app

Overview

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

  1. Download - Extract audio from YouTube using yt-dlp
  2. Transcribe - Convert speech to text using Whisper
  3. Translate - Translate text using Google Translate
  4. Synthesize - Generate speech using Google TTS
  5. Output - Deliver translated audio file

Structures

  • 1 Repository
    • the app: a Streamlit web interface and a command-line pipeline (Python)

Tech Stack & Libraries

LayerBuilt with
Web appPython ยท Streamlit
Transcriptionfaster-whisper (OpenAI Whisper)
Translationdeep-translator (Google Translate)
SpeechgTTS (Google Text-to-Speech)
Audioyt-dlp ยท ffmpeg ยท pydub
HostingStreamlit 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

Voicelate architecture diagram

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.