Transcribe voice messages and long audio files using OpenAI Whisper without crashing your machine. Designed for 16GB RAM systems running other processes (like OpenClaw agents).
Whisper's turbo and large models use 6-10GB RAM. On a 16GB machine running OpenClaw + Ollama + other services, this causes OOM crashes. Existing Whisper skills don't handle this.
base model by default (~1.5GB RAM — safe on any 16GB machine)bash
# Basic usage
./transcribe.sh /path/to/audio.ogg
# Custom model (if you have more RAM)
WHISPER_MODEL=small ./transcribe.sh /path/to/audio.ogg
# Custom language
WHISPER_LANG=en ./transcribe.sh /path/to/audio.ogg
# Custom output directory
./transcribe.sh /path/to/audio.ogg /path/to/output/
ModelRAMSpeedAccuracyRecommended Fortiny~1GB⚡⚡⚡★★Quick previews, low-RAM systemsbase~1.5GB⚡⚡★★★Default — best balance ✅small~2.5GB⚡★★★★When accuracy matters moremedium~5GB🐢★★★★★32GB+ RAM onlyturbo~6GB🐢🐢★★★★★Dedicated transcription machines
Add to your agent's BOOTSTRAP.md:
markdown
## Voice Message Handling
When you receive `<media:audio>`, ALWAYS transcribe first:
1. Run: `./skills/auto-whisper-safe/transcribe.sh <audio-path>`
2. Read the output transcript file
3. Respond based on the transcribed content
Do this automatically — voice messages are meant to be transcribed.
VariableDefaultDescriptionWHISPER_MODEL``baseWhisper model sizeWHISPER_LANG``enAudio language (ISO code)
bash
# macOS
brew install openai-whisper ffmpeg
# Ubuntu/Debian
pip install openai-whisper
apt install ffmpeg
# Verify
whisper --help && ffmpeg -version
Tested on Ubuntu 22.04, 16GB RAM, running OpenClaw (10 agents) + Ollama simultaneously:
Audio LengthModelRAM PeakTimeResult2 min voice memobase1.4GB~15s✅ Perfect12 min podcast clipbase1.5GB (chunked)~90s✅ 2 chunks, seamless45 min interviewbase1.5GB (chunked)6min✅ 5 chunks, seamless2 min voice memotiny0.9GB8s✅ Good enough for quick reads
ffmpeg handles the conversion, so virtually any format works:
.ogg (Telegram voice messages).mp3, .m4a, .wav, .flac.webm (browser recordings).opus (WhatsApp voice messages)