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

Uploaded Python 3

File details

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

File metadata

  • Download URL: transcribe_mlx-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 28dd361ce7fe8c9a80912a8649ba9bdc3d33b365c25b38fc05faf4f87f18c750
MD5 8e77a80b70299d2c05e558ddf9588dae
BLAKE2b-256 dbbc1bce7f53ff43ee57a396eebb5ed33619a2bd21497794be768a9df146e423

See more details on using hashes here.

File details

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

File metadata

  • Download URL: transcribe_mlx-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 78d13e44da46c0049765ed5ad1230bb7b8991efa79c257d9a274cc930e52eb00
MD5 4c21dde7af574bb5de99f00fb8f8d209
BLAKE2b-256 3de035942cc6d1c5265e5b56dabe6936129959a6219dc35071ca1399c6268fe8

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