update readme with use_vad

This commit is contained in:
makaveli10
2024-02-15 18:13:26 +05:30
parent 8266099ed0
commit e3c7666cf7
+5 -3
View File
@@ -58,7 +58,8 @@ client = TranscriptionClient(
9090,
lang="en",
translate=False,
model="small"
model="small",
use_vad=False,
)
client("tests/jfk.wav")
@@ -73,11 +74,12 @@ client = TranscriptionClient(
9090,
lang="hi",
translate=True,
model="small"
model="small",
use_vad=True,
)
client()
```
This command captures audio from the microphone and sends it to the server for transcription. It uses the multilingual model with `hi` as the selected language. We use whisper `small` by default but can be changed to any other option based on the requirements and the hardware running the server.
This command captures audio from the microphone and sends it to the server for transcription. It uses the multilingual model with `hi` as the selected language. We use whisper `small` by default but can be changed to any other option based on the requirements and the hardware running the server. The server also has an option to use `VAD`(voice activity detection) which is set to True by default.
- To transcribe from a HLS stream:
```python