a few examples

This commit is contained in:
Awni Hannun
2023-11-29 08:17:26 -08:00
parent ecb806ab61
commit 8b336aa71d
32 changed files with 105181 additions and 2 deletions

27
whisper/README.md Normal file
View 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"]
```