A beautiful, AI-powered translation application supporting 35+ Indian and worldwide languages. Translate text, audio files, live recordings, and entire documents with ease.
Type or paste text and get instant translations with pronunciation guides.
Upload MP3, WAV, OGG, M4A, or WEBM files to transcribe and translate.
Record your voice directly using the Web Speech API for real-time transcription and translation.
Upload and translate entire documents while preserving formatting:
- PDF — Extract and translate text content
- Word (.docx) — Preserves paragraphs, tables, and basic formatting
- PowerPoint (.pptx) — Translates slides, shapes, and table content
- Excel (.xlsx) — Translates text in cells across all sheets
- Text (.txt) — Simple text file translation
- Batch Processing — Upload multiple files and download as ZIP
Listen to translations in the target language.
Hindi, Bengali, Telugu, Marathi, Tamil, Gujarati, Kannada, Malayalam, Punjabi, Odia, Assamese, Urdu, Sanskrit, Nepali, Sindhi
English, Spanish, French, German, Italian, Portuguese, Russian, Japanese, Korean, Chinese (Simplified & Traditional), Arabic, Turkish, Vietnamese, Thai, Indonesian, Malay, Dutch, Polish, Swedish, Greek, Hebrew, Persian
- Python 3.8 or higher
- FFmpeg (required for audio processing)
- FLAC (required for speech recognition)
macOS:
brew install ffmpeg flacUbuntu/Debian:
sudo apt update
sudo apt install ffmpeg flacWindows: Download from ffmpeg.org and add to PATH.
- Clone or navigate to the project directory:
cd speech-to-text- Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Run the application:
python app.py- Open your browser:
Navigate to
http://localhost:5000
- Select source language (or use Auto Detect)
- Select target language
- Type or paste your text
- Click "Translate" or press
Ctrl/Cmd + Enter
- Click on "Audio File" tab
- Drag & drop or click to upload an audio file
- Select source and target languages
- Click "Translate Audio"
- Click on "Live Recording" tab
- Click the microphone button to start recording
- Speak your message (you'll see real-time transcription)
- Click the microphone again to stop
- The translation appears automatically
- Click on "Documents" tab
- Drag & drop files or click to browse
- Select multiple files for batch processing
- Choose source and target languages
- Click "Translate Documents"
- Download individual files or all as ZIP
| Endpoint | Method | Description |
|---|---|---|
/api/languages |
GET | Get list of supported languages |
/api/translate/text |
POST | Translate text |
/api/translate/audio |
POST | Translate audio file |
/api/speech-to-text |
POST | Convert speech to text |
/api/text-to-speech |
POST | Convert text to speech |
/api/detect-language |
POST | Detect text language |
/api/document/translate |
POST | Translate single document |
/api/document/translate-batch |
POST | Translate multiple documents |
/api/document/download/<id> |
GET | Download translated document |
/api/document/preview |
POST | Preview document content |
- Backend: Flask, Google Translate API, Google Speech Recognition, gTTS
- Frontend: Vanilla JavaScript, Modern CSS with animations
- Audio Processing: Pydub, SpeechRecognition
- Document Processing: python-docx, PyPDF2, python-pptx, openpyxl, reportlab
speech-to-text/
├── app.py # Flask application
├── document_processor.py # Document processing module
├── requirements.txt # Python dependencies
├── README.md # This file
├── templates/
│ └── index.html # Main HTML template
├── static/
│ ├── css/
│ │ └── style.css # Styles
│ └── js/
│ └── app.js # Frontend JavaScript
└── uploads/ # Temporary file storage (auto-created)
- Ensure clear audio with minimal background noise
- Speak clearly and at a moderate pace
- Check that the correct source language is selected
- Make sure FFmpeg is installed correctly
- Verify the audio file format is supported
- Check your internet connection (Google Speech API requires internet)
- Try shorter audio clips
- Ensure the file is not password-protected
- Check that the file is not corrupted
- Large documents may take longer to process
- Allow microphone access when prompted
- Use Chrome or Edge for best Web Speech API support
- Check that no other app is using the microphone
MIT License
- Google Translate API for translation services
- Google Speech Recognition for speech-to-text
- gTTS for text-to-speech synthesis
- python-docx, PyPDF2, python-pptx, openpyxl for document processing