Gemma 4 audio with MLX

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Mac users can now run local audio transcription with a single uv command using Google's Gemma 4 E2B model via MLX, avoiding cloud speech-to-text APIs.

Read this as

Simon Willison shares a one-line command for transcribing audio on a Mac using a model called Gemma 4 E2B, which is about 10 GB and runs locally with Apple's MLX software. He tested it on a 14-second voice memo and got an almost-perfect transcription with two small word errors. Anyone with a Mac can copy the command and use it today, with no cloud service or payment involved.

This post is a working recipe, not a product launch: a single command that runs Google's Gemma 4 E2B model locally on macOS for audio transcription. It matters because local speech-to-text can replace paid cloud transcription for short clips, with no data leaving the machine. The limitation shown is accuracy - the model made two word errors on a 14-second test clip. No pricing or benchmark comparisons are given.

The recipe uses uv with Python 3.13 and mlx-vlm to run google/gemma-4-e2b-it (10.28 GB) on macOS, passing a 14-second WAV file with the prompt 'Transcribe this audio', max-tokens 500, temperature 1.0. Output was near-correct, mishearing 'This right here' as 'This front here' and 'how well that works' as 'how that works'. No benchmarks or accuracy measurements are provided.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Gemma 4 E2B MLX mlx-vlm uv Hugging Face macOS

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading