mlx-examples/whisper
2023-11-29 08:17:26 -08:00
..
whisper a few examples 2023-11-29 08:17:26 -08:00
benchmark.py a few examples 2023-11-29 08:17:26 -08:00
README.md a few examples 2023-11-29 08:17:26 -08:00
requirements.txt a few examples 2023-11-29 08:17:26 -08:00
test.py a few examples 2023-11-29 08:17:26 -08:00

whisper

Whisper in MLX.

First install the dependencies:

(TODO, MLX install link / command / add to requirements.txt)

pip install -r requirements.txt

Install ffmpeg:

# on MacOS using Homebrew (https://brew.sh/)
brew install ffmpeg

Then transcribe audio with:

import whisper

text = whisper.transcribe(speech_file)["text"]