Spaces:
Configuration error
Configuration error
Fedir Zadniprovskyi
commited on
Commit
·
125092f
1
Parent(s):
4e64465
docs: fix shell quote
Browse files
examples/live-audio/script.sh
CHANGED
@@ -16,4 +16,4 @@ docker run --detach --gpus=all --publish 8000:8000 --volume ~/.cache/huggingface
|
|
16 |
|
17 |
# `pv` is used to limit the rate at which the audio is streamed to the server. Audio is being streamed at a rate of 32kb/s(16000 sample rate * 16-bit sample / 8 bits per byte = 32000 bytes per second). This emulutes live audio input from a microphone: `ffmpeg -loglevel quiet -f alsa -i default -ac 1 -ar 16000 -f s16le`
|
18 |
# shellcheck disable=SC2002
|
19 |
-
cat audio.pcm | pv -qL 32000 | websocat --no-close --binary ws://localhost:8000/v1/audio/transcriptions?language=en
|
|
|
16 |
|
17 |
# `pv` is used to limit the rate at which the audio is streamed to the server. Audio is being streamed at a rate of 32kb/s(16000 sample rate * 16-bit sample / 8 bits per byte = 32000 bytes per second). This emulutes live audio input from a microphone: `ffmpeg -loglevel quiet -f alsa -i default -ac 1 -ar 16000 -f s16le`
|
18 |
# shellcheck disable=SC2002
|
19 |
+
cat audio.pcm | pv -qL 32000 | websocat --no-close --binary 'ws://localhost:8000/v1/audio/transcriptions?language=en'
|