Fedir Zadniprovskyi commited on
Commit
29d246f
·
unverified ·
1 Parent(s): 1c2435a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -11
README.md CHANGED
@@ -68,19 +68,13 @@ curl http://localhost:8000/v1/audio/transcriptions -F "[email protected]" -F "stre
68
  curl http://localhost:8000/v1/audio/translations -F "[email protected]"
69
  ```
70
 
71
- ### Live Transcription
 
 
 
 
72
  [websocat](https://github.com/vi/websocat?tab=readme-ov-file#installation) installation is required.
73
  Live transcribing audio data from a microphone.
74
  ```bash
75
  ffmpeg -loglevel quiet -f alsa -i default -ac 1 -ar 16000 -f s16le - | websocat --binary ws://localhost:8000/v1/audio/transcriptions
76
  ```
77
- Streaming audio data from a file.
78
- ```bash
79
- ffmpeg -loglevel quiet -f alsa -i default -ac 1 -ar 16000 -f s16le - > audio.raw
80
- # send all data at once
81
- cat audio.raw | websocat --no-close --binary ws://localhost:8000/v1/audio/transcriptions
82
- # Output: {"text":"One,"}{"text":"One, two, three, four, five."}{"text":"One, two, three, four, five."}%
83
- # streaming 16000 samples per second. each sample is 2 bytes
84
- cat audio.raw | pv -qL 32000 | websocat --no-close --binary ws://localhost:8000/v1/audio/transcriptions
85
- # Output: {"text":"One,"}{"text":"One, two,"}{"text":"One, two, three,"}{"text":"One, two, three, four, five."}{"text":"One, two, three, four, five. one."}%
86
- ```
 
68
  curl http://localhost:8000/v1/audio/translations -F "[email protected]"
69
  ```
70
 
71
+ ### Live Transcription (using Web Socket)
72
+ From [live-audio](./examples/live-audio) example
73
+
74
+ https://github.com/fedirz/faster-whisper-server/assets/76551385/e334c124-af61-41d4-839c-874be150598f
75
+
76
  [websocat](https://github.com/vi/websocat?tab=readme-ov-file#installation) installation is required.
77
  Live transcribing audio data from a microphone.
78
  ```bash
79
  ffmpeg -loglevel quiet -f alsa -i default -ac 1 -ar 16000 -f s16le - | websocat --binary ws://localhost:8000/v1/audio/transcriptions
80
  ```