ggerganov commited on
Commit
fb12dac
·
1 Parent(s): 7fa6853

Update README.md

Browse files
Files changed (1) hide show
  1. examples/stream/README.md +23 -0
examples/stream/README.md CHANGED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # stream
2
+
3
+ This is a naive example of performing real-time inference on audio from your microphone.
4
+ The `stream` tool samples the audio every half a second and runs the transcription continously.
5
+ More info is available in [issue #10](https://github.com/ggerganov/whisper.cpp/issues/10).
6
+
7
+ ```java
8
+ ./stream -m ./models/ggml-base.en.bin -t 8 --step 500 --length 5000
9
+ ```
10
+
11
+ https://user-images.githubusercontent.com/1991296/194935793-76afede7-cfa8-48d8-a80f-28ba83be7d09.mp4
12
+
13
+ The `stream` tool depends on SDL2 library to capture audio from the microphone. You can build it like this:
14
+
15
+ ```bash
16
+ # Install SDL2 on Linux
17
+ sudo apt-get install libsdl2-dev
18
+
19
+ # Install SDL2 on Mac OS
20
+ brew install sdl2
21
+
22
+ make stream
23
+ ```