MLXWhisperPipeline ready for transcription. The pipeline bundles a VAD model that segments audio before each chunk is passed to MLX Whisper on Apple Silicon.
Parameters
Short model name (e.g.
"large-v3", "small") or a full Hugging Face repo ID (e.g. "mlx-community/whisper-large-v3-mlx"). Short names are resolved via a built-in map:English-only variants (
tiny.en, base.en, small.en, medium.en) are also available. Pass a full Hugging Face repo ID for any other MLX-compatible model.Device for the VAD model. Use
"cpu" or "mps". MLX Whisper inference always runs on Apple Silicon GPU automatically — this parameter does not affect it.BCP-47 language code (e.g.
"en", "fr", "ja"), or None to enable automatic language detection from the first audio chunk.A pre-instantiated VAD model. When provided,
vad_method is ignored. Use this to share a single VAD instance across multiple calls.VAD backend to use when
vad_model is not provided. Accepted values: "pyannote" (default) or "silero".Default task for the pipeline.
"transcribe" produces output in the source language; "translate" produces an English translation. Can be overridden per-call on .transcribe().When
True, use only locally cached model files and do not attempt to download from Hugging Face. Raises an error if the model is not cached.Returns
AnMLXWhisperPipeline instance. Call .transcribe() on it to transcribe audio.
Full signature
Usage
The
device parameter only controls where the VAD model (pyannote or silero) runs. MLX Whisper inference executes on the Apple Silicon GPU automatically regardless of this setting.Related
MLXWhisperPipeline.transcribe
Transcribe audio with the loaded model.
Voice Activity Detection
Learn about the VAD stage and available backends.