Skip to main content

Audio transcription CLI using MLX Whisper

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transcribe_mlx-0.1.4.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

transcribe_mlx-0.1.4-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file transcribe_mlx-0.1.4.tar.gz.

File metadata

  • Download URL: transcribe_mlx-0.1.4.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.14 Linux/6.14.0-1017-azure

File hashes

Hashes for transcribe_mlx-0.1.4.tar.gz
Algorithm Hash digest
SHA256 9873a5d67411abbdea1bbe8df97be920ad05849cb7e9acfd0050d281a5ec8ca0
MD5 f249d04aaae574b2b11e69063a1db1b3
BLAKE2b-256 cb92dbb36a3437812a02993bb4a0441406003fa4e003d6fb07576a77b37ad1a9

See more details on using hashes here.

File details

Details for the file transcribe_mlx-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: transcribe_mlx-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.14 Linux/6.14.0-1017-azure

File hashes

Hashes for transcribe_mlx-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 339cb3374771616ef0906ef003b6020f1742190ca6edb81ae0ab8524ed701688
MD5 207d90e2fcf981bbd72164daed14b715
BLAKE2b-256 53482441fa470f77003f1c95c83123d02c833042224a36bef09ccc1a8c85f788

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page