Whisper Turbo in MLX
Project description
WTM (Whisper Turbo MLX)
This repository provides a fast and lightweight implementation of the Whisper model using MLX, all contained within a single file of under 300 lines, designed for efficient audio transcription.
Installation
brew install ffmpeg
git clone https://github.com/JosefAlbers/whisper-turbo-mlx.git
cd whisper-turbo-mlx
pip install -e .
Quick Start
To transcribe an audio file:
wtm test.wav
To use the library in a Python script:
>>> from whisper_turbo import transcribe
>>> transcribe('test.wav', any_lang=True)
Quick Parameter
The quick
parameter allows you to choose between two transcription methods:
-
quick=True
: Utilizes a parallel processing method for faster transcription. This method may produce choppier output but is significantly quicker, ideal for situations where speed is a priority (e.g., for feeding the generated transcripts into an LLM to collect quick summaries on many audio recordings). -
quick=False
(default): Engages a recurrent processing method that is slower but yields more faithful and coherent transcriptions (still faster than other reference implementations).
You can specify this parameter when calling the transcribe
function:
wtm --quick=True
>>> transcribe('test.wav', quick=True)
Acknowledgements
This project builds upon the reference MLX implementation of the Whisper model. Great thanks to the contributors of the MLX project for their exceptional work and inspiration.
Contributing
Contributions are welcome! Feel free to submit issues or pull requests.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file whisper_turbo_mlx-0.0.3a0.tar.gz
.
File metadata
- Download URL: whisper_turbo_mlx-0.0.3a0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d6eac1c447d3a0e9c50b75879c4dedd7e307a3ddd41ae6a56ce6fb2ce2bd710 |
|
MD5 | 78ad2772f636d3553ef7d193a94c63b8 |
|
BLAKE2b-256 | c54a357190ac8a119eb35654141f7a4d2ca077f8fbba8f22afe413fd2bea0ce1 |
File details
Details for the file whisper_turbo_mlx-0.0.3a0-py3-none-any.whl
.
File metadata
- Download URL: whisper_turbo_mlx-0.0.3a0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a630bb8850287a80354944caa62829ed30068691d3a4781e0f612b411e767f7 |
|
MD5 | 51bb2ef65c021d40ac9f26d726894027 |
|
BLAKE2b-256 | 644dfd3994f037b48653d6b1fe12e17a02aca69059ae339dc7e0e32f7611dd18 |