Spaces:
Running
Running
Update README.md (ref #50)
Browse files
README.md
CHANGED
|
@@ -19,7 +19,7 @@ High-performance inference of [OpenAI's Whisper](https://github.com/openai/whisp
|
|
| 19 |
To build the main program, run `make`. You can then transcribe a `.wav` file like this:
|
| 20 |
|
| 21 |
```bash
|
| 22 |
-
|
| 23 |
```
|
| 24 |
|
| 25 |
Before running the program, make sure to download one of the ggml Whisper models. For example:
|
|
@@ -216,11 +216,23 @@ The `stream` tool samples the audio every half a second and runs the transcripti
|
|
| 216 |
More info is available in [issue #10](https://github.com/ggerganov/whisper.cpp/issues/10).
|
| 217 |
|
| 218 |
```java
|
| 219 |
-
|
| 220 |
```
|
| 221 |
|
| 222 |
https://user-images.githubusercontent.com/1991296/194935793-76afede7-cfa8-48d8-a80f-28ba83be7d09.mp4
|
| 223 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 224 |
## Implementation details
|
| 225 |
|
| 226 |
- The core tensor operations are implemented in C ([ggml.h](ggml.h) / [ggml.c](ggml.c))
|
|
|
|
| 19 |
To build the main program, run `make`. You can then transcribe a `.wav` file like this:
|
| 20 |
|
| 21 |
```bash
|
| 22 |
+
./main -f input.wav
|
| 23 |
```
|
| 24 |
|
| 25 |
Before running the program, make sure to download one of the ggml Whisper models. For example:
|
|
|
|
| 216 |
More info is available in [issue #10](https://github.com/ggerganov/whisper.cpp/issues/10).
|
| 217 |
|
| 218 |
```java
|
| 219 |
+
./stream -m ./models/ggml-base.en.bin -t 8 --step 500 --length 5000
|
| 220 |
```
|
| 221 |
|
| 222 |
https://user-images.githubusercontent.com/1991296/194935793-76afede7-cfa8-48d8-a80f-28ba83be7d09.mp4
|
| 223 |
|
| 224 |
+
The `stream` tool depends on SDL2 library to capture audio from the microphone. You can build it like this:
|
| 225 |
+
|
| 226 |
+
```bash
|
| 227 |
+
# Install SDL2 on Linux
|
| 228 |
+
sudo apt-get install libsdl2-dev
|
| 229 |
+
|
| 230 |
+
# Install SDL2 on Mac OS
|
| 231 |
+
brew install sdl2
|
| 232 |
+
|
| 233 |
+
make stream
|
| 234 |
+
```
|
| 235 |
+
|
| 236 |
## Implementation details
|
| 237 |
|
| 238 |
- The core tensor operations are implemented in C ([ggml.h](ggml.h) / [ggml.c](ggml.c))
|