Convert audio and video files into accurate text transcripts using AI (Whisper, DeepSeek, or OpenRouter models).
Supports multiple formats and can be self-hosted with minimal setup.
- 🔊 Supports audio files:
.mp3,.wav,.m4a,.ogg - 🎥 Supports video files:
.mp4,.mkv,.mov(extracts audio automatically) - 🧠 Powered by AI models:
- OpenAI Whisper
- DeepSeek (via OpenRouter)
- 🔧 Self-hosted: run locally on your own machine
- 🗂 Outputs clean, timestamped text files
git clone https://github.com/kh4sh3i/media2text.git
cd media2text
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txtCreate your .env file (based on .env.example) and add your API keys if needed.
python media2text.py "path/to/media"| Model | API Support | Offline | Notes |
|---|---|---|---|
| Whisper | ✅ Yes | ✅ Yes | Best balance of accuracy/speed |
| DeepSeek | ✅ Yes | ❌ No | Requires API key via OpenRouter |
for export audio from video file you sohuld install FFmpeg
MIT License. Use freely, credit appreciated.
