Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:AI Builder Club Skills Apple Silicon MLX

From Leeroopedia
Knowledge Sources
Domains Speech_Recognition, Apple_Silicon
Last Updated 2026-10-24 00:00 GMT

Overview

macOS environment with Apple Silicon (M1/M2/M3/M4) and the MLX framework for on-device Whisper transcription.

Description

This environment provides a GPU-accelerated context for running MLX Whisper, Apple's machine learning framework optimized for Apple Silicon's unified memory architecture. MLX leverages the Metal framework and the Neural Engine for efficient on-device inference. The mlx-whisper package provides a Whisper implementation that runs natively on Apple GPUs, delivering word-level timestamp extraction without requiring NVIDIA CUDA.

Usage

Use this environment for the Word-Level Transcription step of the Karaoke Captions workflow. It is the mandatory prerequisite for running the extract_words implementation, which calls mlx_whisper.transcribe() with word_timestamps=True.

System Requirements

Category Requirement Notes
OS macOS 13.5+ Required for MLX framework
Hardware Apple Silicon (M1/M2/M3/M4) Intel Macs not supported by MLX
Disk 5GB free space Model weights cached on first run (~3GB for whisper-large-v3-turbo)

Dependencies

System Packages

  • macOS 13.5 or higher
  • Xcode Command Line Tools (for Metal compilation)

Python Packages

  • mlx-whisper
  • numpy
  • pillow

Credentials

No credentials required. Models are downloaded from HuggingFace mlx-community repos on first run (anonymous access).

Quick Install

# Install all required packages
pip install mlx-whisper numpy pillow

Code Evidence

Import check from extract_words.py:26-28:

try:
    import mlx_whisper
except ImportError:
    sys.exit("Error: mlx_whisper is not installed. Run: pip install mlx-whisper")

Model selection default from extract_words.py:17:

parser.add_argument("--model", default="mlx-community/whisper-large-v3-turbo", help="Model repo or path")

Common Errors

Error Message Cause Solution
Error: mlx_whisper is not installed mlx-whisper package missing pip install mlx-whisper
Error: input file not found Input path does not exist Verify file path exists before running
RuntimeError on Intel Mac MLX requires Apple Silicon Use a Mac with M1 or later; alternatively use OpenAI Whisper on other platforms

Compatibility Notes

  • Intel Macs: Not supported — MLX requires Apple Silicon architecture.
  • Linux/Windows: Not supported — MLX is macOS-only. Use standard openai-whisper as an alternative (different output format).
  • Model caching: First run downloads model weights to ~/.cache/huggingface/; subsequent runs use the cached version.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment