Skip to content

techpostdev/speech-to-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

17 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽ™๏ธ Speech-to-Text Whisper GUI Python

Convert MP4 ยท MP3 ยท WAV ยท M4A ยท FLAC ยท MOV ยท AVI ยท MKV to Text & Subtitles

License: MIT Python 3.8+ Platform

Turn any video or audio file into text, subtitles, or data โ€” with one click!


๐Ÿ“ธ Screenshot

Whisper GUI Screenshot
Main application interface


๐ŸŽฅ Complete Video Tutorial

Watch Tutorial

โ–ถ๏ธ Click the image above to watch the full tutorial

  • โœ… 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

๐Ÿ“ฅ What can you transcribe?

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

๐Ÿš€ One-click conversions

  • 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

โœจ Features

  • ๐ŸŽฏ 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

๐ŸŽฏ Supported Languages

Language Code Language Code
English en Spanish es
French fr German de
Italian it Japanese ja
Chinese zh Russian ru

๐Ÿš€ For Beginners โ€“ Just Download & Run

No Python or coding needed.

๐Ÿ‘‰ Download speech_to_text.exe (Latest Release)

  1. Download the .exe file
  2. Double-click to open the app
  3. Select your video/audio file
  4. Click "START TRANSCRIPTION"

Watch the video above for a step-by-step walkthrough.


๐Ÿ For Developers โ€“ Run from Source

If you want to modify the code or contribute:

๐Ÿ“ฆ Installation

Prerequisites

  • Python 3.8 or higher
  • FFmpeg

Step 1: Install FFmpeg

Windows: winget install ffmpeg

macOS: brew install ffmpeg

Linux (Ubuntu/Debian): sudo apt update sudo apt install ffmpeg

Step 2: Clone Repository

git clone https://github.com/techpostdev/speech-to-text cd speech-to-text

Step 3: Install Python Packages

pip install -r requirements.txt

Step 4: Run Application

python speech-to-text.py


๐Ÿ› ๏ธ For Developers โ€“ Build Your Own EXE

If you want to modify the code and create your own executable:

Step 1: Install PyInstaller

pip install pyinstaller

Step 2: Build the EXE

python -m PyInstaller --onefile --windowed --collect-all whisper speech_to_text.py

Step 3: Find Your EXE

The executable will be created in the dist/ folder as speech_to_text.exe

Step 4: Test Your EXE

Double-click the EXE file to make sure everything works.


๐Ÿš€ GPU Acceleration (Optional)

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())"


๐ŸŽฎ How to Use

Single File:

  1. Click "BROWSE FILE" or Drag & Drop
  2. Select Model (Tiny/Base/Small/Medium)
  3. Select Language
  4. Choose Output Formats
  5. Click "START TRANSCRIPTION"

Batch Processing:

  1. Click "SCAN FOLDER"
  2. Select folder with files
  3. Check "BATCH PROCESS ALL FILES"
  4. Click "START TRANSCRIPTION"

โŒจ๏ธ Keyboard Shortcuts

Shortcut Action
Ctrl + O Browse File
Ctrl + B Scan Folder
Ctrl + Enter Start Transcription

โ“ FAQ

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).

๐Ÿ”ง Troubleshooting

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 Comparison

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

๐Ÿ›ฃ๏ธ Roadmap

  • Faster-Whisper support
  • Speaker diarization
  • DOCX export
  • Auto language detection
  • Real-time transcription

๐Ÿค Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/AmazingFeature)
  3. Commit changes (git commit -m 'Add AmazingFeature')
  4. Push to branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“ License

MIT License - Free for personal and commercial use

๐Ÿ‘ค Author

Tech Post

๐Ÿ™ Credits

  • OpenAI Whisper
  • PyTorch
  • FFmpeg

๐Ÿ“ Project Structure

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

About

๐ŸŽ™๏ธ Open-source Speech-to-Text GUI powered by OpenAI Whisper. Convert audio and video files (MP4, MP3, WAV, MOV, AVI, MKV, M4A & FLAC) into text transcripts, SRT/VTT subtitles, JSON & TSV with batch processing, GPU acceleration, and multilingual support.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages