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.2.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.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: transcribe_mlx-0.1.2.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 Darwin/24.3.0

File hashes

Hashes for transcribe_mlx-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6ac0571d7d0074d0b00e090d0486ad4750f855472ca7039d6054887f0746ad6e
MD5 5f3dfa2643ad6c25ef4645d9865a2bbb
BLAKE2b-256 0b905285f2d28e27d72d6617d72f4be3c6d2bb8ba223c2147e5052a343c9ab43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: transcribe_mlx-0.1.2-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 Darwin/24.3.0

File hashes

Hashes for transcribe_mlx-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 15af639c3c47d712184485c8b4d9dc3ce44da013daed725891f69d31fa4c5709
MD5 93b61a4d25fc41480364f5ae932eb31c
BLAKE2b-256 de0efa8305d980f2cbd0ae3b6bf4b65bab143da7ff75b09d292ab9cd6750b56f

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