

Update README.md
@051d62c1d0e9eb75379ba7b3eb027dcc45d25fab
--- README.md
+++ README.md
... | ... | @@ -68,19 +68,13 @@ |
68 | 68 |
curl http://localhost:8000/v1/audio/translations -F "file=@audio.wav" |
69 | 69 |
``` |
70 | 70 |
|
71 |
-### Live Transcription |
|
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 |
+ |
|
72 | 76 |
[websocat](https://github.com/vi/websocat?tab=readme-ov-file#installation) installation is required. |
73 | 77 |
Live transcribing audio data from a microphone. |
74 | 78 |
```bash |
75 | 79 |
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 | 80 |
``` |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?