Whisper is a set of open source speech recognition models from OpenAI, and mlx-whisper is the version built on MLX for Apple Silicon Macs. It runs entirely on your own machine, so the audio never leaves it. This guide covers the mlx-whisper package specifically — not openai-whisper, not faster-whisper, and not whisper.cpp, which are separate tools with separate commands.
Install ffmpeg and mlx-whisper
Install ffmpeg first, then the package. The project’s own Whisper page gives both commands:
brew install ffmpeg
pip install mlx-whisper
The page says the default model is mlx-community/whisper-tiny. Pre-converted Whisper models in MLX format are available from the Hugging Face MLX Community, so you can pick a larger model later without converting one yourself.
Transcribe one audio file
At its simplest, the command is one line:
mlx_whisper audio_file.mp3
That makes a text file called audio_file.txt with the results. Use -f to specify the output format and --model to specify the model, and run mlx_whisper -h to see all the other command line options. You can also pipe audio from another program through stdin:
some-process | mlx_whisper -
In that case the default output file name is content.*, and you can specify the name with the --output-name flag. For a practice check, use a short recording where you say a sentence you know, such as “The lighthouse keeper named Mara checked the lamp at noon.” Then open the text file and check that the sentence is there.
Use it from Python, and add word timestamps
The same transcription is available as a Python call:
import mlx_whisper
text = mlx_whisper.transcribe(speech_file)["text"]
Choose the model by setting path_or_hf_repo, which can point to a local model folder or to an MLX-style Whisper model on the Hugging Face Hub — in the latter case the model is downloaded automatically:
result = mlx_whisper.transcribe(speech_file, path_or_hf_repo="models/large")
Word-level timestamps are also supported:
output = mlx_whisper.transcribe(speech_file, word_timestamps=True)
print(output["segments"][0]["words"])
| Check | What you should see | If you do not see it |
|---|---|---|
| Installed | pip install mlx-whisper finishes, and ffmpeg is installed |
Install ffmpeg first with brew install ffmpeg — the page lists it as a setup step |
| Transcribed | mlx_whisper audio_file.mp3 finishes and writes audio_file.txt |
Check the file name — the output text file takes the audio file’s name |
| Correct | The text file contains your practice sentence | The model may have misheard — the default model is the small mlx-community/whisper-tiny, so try a larger model with --model |
| Python | mlx_whisper.transcribe(speech_file)["text"] returns the transcript text |
The function takes the audio file path, and the text is under the "text" key |
Expected result. We checked the mlx-examples Whisper page for the ffmpeg and pip install commands, the mlx_whisper audio_file.mp3 command and its audio_file.txt output, the -f, –model, and –output-name flags, the stdin pipe with content.* output, the Python transcribe call, the default mlx-community/whisper-tiny model, path_or_hf_repo, and word_timestamps. We did not run mlx-whisper or transcribe any audio.
Limits
mlx-whisper runs on Apple Silicon Macs only, because it is built on MLX. The default model is the tiny one, so expect more mistakes than a larger model would make — the trade-off for speed is accuracy. If you want to convert a model yourself instead of using a pre-converted one, the page’s convert.py script does it, and -q generates a 4-bit quantized model. This guide transcribes a finished audio file; live microphone transcription is a different job. We did not run mlx-whisper, so no transcript here is a recorded result.
