Skip to main content

transcribe-mlx

Local audio transcription to JSON using MLX Whisper. Runs on Apple Silicon.

Install

pip install transcribe-mlx

Usage

transcribe-mlx "audio.mp3" "output.json"
transcribe-mlx "audio.mp3" "output.json" --model mlx-community/whisper-large-v3-mlx

Output is saved as a JSON file with segments, words, and timestamps.

First run: the model (~1–3 GB) is downloaded automatically from HuggingFace and cached locally. Subsequent runs use the cache.

Arguments

Argument Description
audio Path to the input audio file
output Path where the output JSON will be saved

Options

Flag Default Description
--model / -m mlx-community/whisper-large-v3-turbo HuggingFace repo or local path to the Whisper MLX model

Requirements

  • Python 3.11+
  • Apple Silicon (MLX requires Metal)
  • FFmpeg (brew install ffmpeg)

Development

git clone https://github.com/felipeinfantino/transcribe-mlx
cd transcribe-mlx
poetry install
poetry run transcribe-mlx "inputs/audio.mp3" "outputs/result.json"

Extending with a new package

poetry add [packagename]

# Check the CLI is still working
poetry run transcribe-mlx "inputs/audio.mp3" "outputs/result.json"

# Verify lockfile is clean
poetry lock

# Bump version
poetry version patch   # or minor / major

Git build versioning

Let x.y.z be the new bumped version:

git tag v[x.y.z]
git push origin main --tags

License

MIT

Metadata

Release files for transcribe-mlx 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for transcribe-mlx 0.1.4
File Size Uploaded
transcribe_mlx-0.1.4.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for transcribe-mlx 0.1.4
File Interpreter ABI Platform
transcribe_mlx-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 5.3 kB

Release files / transcribe_mlx-0.1.4.tar.gz

Download URL transcribe_mlx-0.1.4.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9873a5d67411abbdea1bbe8df97be920ad05849cb7e9acfd0050d281a5ec8ca0
BLAKE2b-256 checksum
How to use checksums
cb92dbb36a3437812a02993bb4a0441406003fa4e003d6fb07576a77b37ad1a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.11.14 Linux/6.14.0-1017-azure

Release files / transcribe_mlx-0.1.4-py3-none-any.whl

Download URL transcribe_mlx-0.1.4-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
339cb3374771616ef0906ef003b6020f1742190ca6edb81ae0ab8524ed701688
BLAKE2b-256 checksum
How to use checksums
53482441fa470f77003f1c95c83123d02c833042224a36bef09ccc1a8c85f788
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.11.14 Linux/6.14.0-1017-azure

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page