mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-31 20:04:38 +08:00
a few examples
This commit is contained in:
27
whisper/README.md
Normal file
27
whisper/README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# 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"]
|
||||
```
|
||||
|
Reference in New Issue
Block a user