A Python project that combines MLX Whisper for fast local transcription with pyannote.audio for speaker diarization, optimized for Apple Silicon.
pip install mlx-whisper pyannote.audio torch torchaudio
Get HuggingFace token:
Create .env file:
HF_TOKEN=your_huggingface_token_here
python speech-to-text-fixed.py audio_file.mp3 your_hf_token
python speech-to-text-fixed.py audio_file.mp3 your_hf_token srt
python speech-to-text-fixed.py audio_file.mp3 your_hf_token json
python transcribe_only.py audio_file.mp3
speech-to-text-fixed.py - Main script with speaker diarizationtranscribe_only.py - Simple transcription without speaker identificationdebug_pyannote.py - Debugging tool for pyannote issuesspeech-to-text.py - Original script (may have tensor size issues)test-mlx.py - MLX Whisper testing scriptCLAUDE.md - Development guidance for Claude CodeCommon issues and solutions are documented in CLAUDE.md. For debugging pyannote issues, use:
python debug_pyannote.py your_hf_token audio_file.mp3
2 commits
Python
100.0%
A Python project that combines MLX Whisper for fast local transcription with pyannote.audio for speaker diarization, optimized for Apple Silicon.
pip install mlx-whisper pyannote.audio torch torchaudio
Get HuggingFace token:
Create .env file:
HF_TOKEN=your_huggingface_token_here
python speech-to-text-fixed.py audio_file.mp3 your_hf_token
python speech-to-text-fixed.py audio_file.mp3 your_hf_token srt
python speech-to-text-fixed.py audio_file.mp3 your_hf_token json
python transcribe_only.py audio_file.mp3
speech-to-text-fixed.py - Main script with speaker diarizationtranscribe_only.py - Simple transcription without speaker identificationdebug_pyannote.py - Debugging tool for pyannote issuesspeech-to-text.py - Original script (may have tensor size issues)test-mlx.py - MLX Whisper testing scriptCLAUDE.md - Development guidance for Claude CodeCommon issues and solutions are documented in CLAUDE.md. For debugging pyannote issues, use:
python debug_pyannote.py your_hf_token audio_file.mp3
2 commits
Python
100.0%