Update README.md

This commit is contained in:
Jonny Yang
2023-12-25 13:12:24 +00:00
committed by GitHub
parent 5de4de4b84
commit 6ee4cd09f2
+2 -2
View File
@@ -54,9 +54,9 @@ Unlike traditional speech recognition systems that rely on continuous audio stre
) )
client() client()
``` ```
This command captures audio from the microphone and sends it to the server for transcription. It uses the multilingual option with `hi` as the selectelanguage, enabling the multilingual feature and specifying the target language and task. 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 option with `hi` as the selected language, enabling the multilingual feature and specifying the target language and task. We use whisper `small` by default but can be changed to any other option based on the requirements and the hardware running the server.
- To trasncribe from a HLS stream: - To transcribe from a HLS stream:
```python ```python
client = TranscriptionClient(host, port, is_multilingual=True, lang="en", translate=False) client = TranscriptionClient(host, port, is_multilingual=True, lang="en", translate=False)
client(hls_url="http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_1xtra/bbc_1xtra.isml/bbc_1xtra-audio%3d96000.norewind.m3u8") client(hls_url="http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_1xtra/bbc_1xtra.isml/bbc_1xtra-audio%3d96000.norewind.m3u8")