Turn any video or audio file into text, subtitles, or data โ with one click!
- โ How to install Python & FFmpeg
- โ Setting up the project step by step
- โ Transcribing MP4/MP3 files
- โ Batch processing multiple files
- โ GPU acceleration setup (CUDA)
- โ Real-time demo with different file formats
| If you have... | You can get... |
|---|---|
| ๐ฅ MP4 Video | ๐ Text transcript |
| ๐ต MP3 Audio | ๐ฌ SRT subtitles |
| ๐ถ WAV Recording | ๐ VTT web subtitles |
| ๐ M4A Podcast | ๐ JSON data |
| ๐ผ FLAC Music | ๐ TSV for Excel |
| ๐ฌ MOV Video | โ All formats at once! |
| ๐๏ธ AVI Video | |
| ๐๏ธ MKV Video |
- MP4 โ TXT : Extract text from YouTube videos, lectures, movies
- MP3 โ SRT : Create subtitles for your podcast
- WAV โ JSON : Get word-by-word timestamps
- MOV โ VTT : Web-ready subtitles
- Batch folder โ All formats : Process 100+ files overnight
- ๐ฏ Drag & Drop support
- ๐ GPU (CUDA) acceleration
- ๐ Batch processing (entire folders)
- ๐ 8 languages support
- ๐ Multiple output formats (TXT, SRT, VTT, JSON, TSV)
- ๐จ Modern dark theme UI
- โก Keyboard shortcuts
| Language | Code | Language | Code |
|---|---|---|---|
| English | en | Spanish | es |
| French | fr | German | de |
| Italian | it | Japanese | ja |
| Chinese | zh | Russian | ru |
No Python or coding needed.
๐ Download speech_to_text.exe (Latest Release)
- Download the
.exefile - Double-click to open the app
- Select your video/audio file
- Click "START TRANSCRIPTION"
Watch the video above for a step-by-step walkthrough.
If you want to modify the code or contribute:
- Python 3.8 or higher
- FFmpeg
Windows: winget install ffmpeg
macOS: brew install ffmpeg
Linux (Ubuntu/Debian): sudo apt update sudo apt install ffmpeg
git clone https://github.com/techpostdev/speech-to-text cd speech-to-text
pip install -r requirements.txt
python speech-to-text.py
If you want to modify the code and create your own executable:
pip install pyinstaller
python -m PyInstaller --onefile --windowed --collect-all whisper speech_to_text.py
The executable will be created in the dist/ folder as speech_to_text.exe
Double-click the EXE file to make sure everything works.
For 10x faster transcription with NVIDIA GPU:
pip uninstall torch torchaudio pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu118
Verify GPU is working: python -c "import torch; print(torch.cuda.is_available())"
- Click "BROWSE FILE" or Drag & Drop
- Select Model (Tiny/Base/Small/Medium)
- Select Language
- Choose Output Formats
- Click "START TRANSCRIPTION"
- Click "SCAN FOLDER"
- Select folder with files
- Check "BATCH PROCESS ALL FILES"
- Click "START TRANSCRIPTION"
| Shortcut | Action |
|---|---|
| Ctrl + O | Browse File |
| Ctrl + B | Scan Folder |
| Ctrl + Enter | Start Transcription |
Q: "ffmpeg not found" error? A: Install FFmpeg (see installation steps above)
Q: Slow transcription? A: First run downloads models. Enable GPU for faster processing.
Q: "mel_filters.npz" error? A: Run pip install --upgrade openai-whisper
Q: Can I transcribe 2-hour movies? A: Yes, use "Base" or "Tiny" model with 8GB+ RAM.
Q: Does it work offline? A: Yes, after first model download (1-3GB).
| Problem | Solution |
|---|---|
| pip not found | Reinstall Python with PATH option |
| torch not found | Run pip install torch |
| CUDA out of memory | Use smaller model (Tiny/Base) |
| File not supported | Convert to MP3 or MP4 |
| Permission denied | Run as administrator |
| Model | Speed | Accuracy | RAM | Best For |
|---|---|---|---|---|
| Tiny | โกFastest | 70% | 1GB | Testing |
| Base | โกโกFast | 85% | 2GB | General Use |
| Small | โกMedium | 90% | 3GB | Important meetings |
| Medium | ๐ Slow | 95% | 5GB | Professional |
- Faster-Whisper support
- Speaker diarization
- DOCX export
- Auto language detection
- Real-time transcription
- Fork the repository
- Create feature branch (git checkout -b feature/AmazingFeature)
- Commit changes (git commit -m 'Add AmazingFeature')
- Push to branch (git push origin feature/AmazingFeature)
- Open a Pull Request
MIT License - Free for personal and commercial use
Tech Post
- GitHub: @techpostdev
- Project Link: https://github.com/techpostdev/speech-to-text
- OpenAI Whisper
- PyTorch
- FFmpeg
speech-to-text/ โโโ speech_to_text.py โโโ requirements.txt โโโ README.md โโโ LICENSE โโโ .gitignore โโโ assets/ โ โโโ Screenshot_1.png โโโ docs/ โโโ installation.md โโโ usage.md โโโ faq.md
โญ Star this repository if you find it useful! โญ
Made with โค๏ธ for everyone
