Skip to main content

whisper-mps

image

An opinionated CLI to transcribe Audio files (or YouTube videos) w/ Whisper on-device! Powered by MLX, Whisper & Apple M series

TL;DR - After our actual testing, the Whisper supported by MPS achieves speeds comparable to a 4090!

80 mins audio file only need 80s on APPLE M1 MAX 32G! ONLY 80 SECONDS

🆕 Blazingly fast transcriptions via your terminal! ⚡️

We've added a CLI to enable fast transcriptions. Here's how you can use it:

Install whisper-mps with pip:

# please install ffmpeg first: brew install ffmpeg
pip install whisper-mps

Run inference from any path on your computer:

# filetype should be wav/mp3/mp4 etc.
whisper-mps --file-name <filename>

Run inference with a specific model size:

# for example, using the base model size. Other available models: "tiny", "base", "small", "medium", "large".
# Larger models require more loading time.
# filetype should be wav/mp3/mp4 etc.
whisper-mps --file-name <filename> --model-name base

Run inference from a YouTube URL on your computer:

[!NOTE] Deprecated: The YouTube URL inference feature is deprecated and may be removed in future releases.
Please uses yt-dlp to download YouTube videos.

# whisper-mps --youtube-url https://www.youtube.com/watch\?v\=jaM02mb6JFM

[!NOTE] The CLI is highly opinionated and only works on Apple MPS.

CLI Options

The whisper-mps repo provides all-round support for running Whisper in various settings. More command-line support will be provided later.

  --file-name FILE_NAME
                  Path or URL to the audio file to be transcribed.
  --model-name MODEL_NAME
                  Size of the OPENAI Whisper model name, like tiny (default), base, small, etc.
  --youtube-url URL_ADDRESS
                  The YouTube video URL. (Deprecated)
  --output-file-name OUTPUT_FILE_NAME
                  The output file name for the transcribed text JSON.
  --log-level LOG_LEVEL
                  Optional. ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]

Metadata

Release files for whisper-mps 0.0.10

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

Source distribution (sdist)

Source distribution for whisper-mps 0.0.10
File Size Uploaded
whisper_mps-0.0.10.tar.gz 920.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for whisper-mps 0.0.10
File Interpreter ABI Platform
whisper_mps-0.0.10-py3-none-any.whl Python 3 none any Details

Total release size: 1.8 MB

Release files / whisper_mps-0.0.10.tar.gz

Download URL whisper_mps-0.0.10.tar.gz
Size 920.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7bb703cdb226224e43e920595dd3cc05662c921cf5f0827eb31ee2182ccab024
BLAKE2b-256 checksum
How to use checksums
5216b009317ca1f544e2a6ce2a4e2a5011c9e85cd5cd465c45fa06ba87f55758
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / whisper_mps-0.0.10-py3-none-any.whl

Download URL whisper_mps-0.0.10-py3-none-any.whl
Size 925.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bdcf0fd7a1456aece18938e0bb704fd258df2a38f6a8450d3282de841be45c7
BLAKE2b-256 checksum
How to use checksums
a4ef840fa53b45b31fb84583cfd5e56c6c4af5c09c407283d619f8c1adba9054
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.0.10 This release

2 release files

0.0.9

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

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