mlx-examples/whisper/README.md

28 lines
385 B
Markdown
Raw Normal View History

2023-11-30 00: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`](https://ffmpeg.org/):
```bash
# on MacOS using Homebrew (https://brew.sh/)
brew install ffmpeg
```
Then transcribe audio with:
```
import whisper
text = whisper.transcribe(speech_file)["text"]
```