Skip to main content

with Apple MPS support for OpenAI Whisper

Project description

whisper-mps

An opinionated CLI to transcribe Audio files 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 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:

pip install whisper-mps

Run inference from any path on your computer:

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

Run inference from specfic model size:

# for example,with base model size, others:["tiny", "base", "small", "medium", "large"]
# Larger models require more loading time
# filename should be wav/mp3/mp4 etc
whisper-mps --file-name <filename> --model-name base

Run inference from YOUTUBE URL on your computer:

# default download behavior is to fetch the video as a mp3 file to save time
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 an 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 play url 

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

whisper_mps-0.0.7.tar.gz (918.2 kB view hashes)

Uploaded Source

Built Distribution

whisper_mps-0.0.7-py3-none-any.whl (922.7 kB view hashes)

Uploaded Python 3

Supported by

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