Minor tweaks to documentation
This commit is contained in:
committed by
GitHub
parent
c95b81f7e7
commit
2c7daeacd1
@@ -28,7 +28,7 @@ Unlike traditional speech recognition systems that rely on continuous audio stre
|
|||||||
- To transcribe an audio file:
|
- To transcribe an audio file:
|
||||||
```python
|
```python
|
||||||
from whisper_live.client import TranscriptionClient
|
from whisper_live.client import TranscriptionClient
|
||||||
client = TranscriptionClient("localhost", 9090, multilingual=True, language="hi", translate=True)
|
client = TranscriptionClient("localhost", 9090, is_multilingual=True, lang="hi", translate=True)
|
||||||
client(audio_file_path)
|
client(audio_file_path)
|
||||||
```
|
```
|
||||||
This command transcribes the specified audio file (audio.wav) using the Whisper model. It connects to the server running on localhost at port 9090. It also enables the multilingual feature, allowing transcription in multiple languages. The language option specifies the target language for transcription, in this case, Hindi ("hi"). The translate option should be set to `True` if we want to translate from the source language to English and `False` if we want to transcribe in the source language.
|
This command transcribes the specified audio file (audio.wav) using the Whisper model. It connects to the server running on localhost at port 9090. It also enables the multilingual feature, allowing transcription in multiple languages. The language option specifies the target language for transcription, in this case, Hindi ("hi"). The translate option should be set to `True` if we want to translate from the source language to English and `False` if we want to transcribe in the source language.
|
||||||
@@ -36,7 +36,7 @@ Unlike traditional speech recognition systems that rely on continuous audio stre
|
|||||||
- To transcribe from microphone:
|
- To transcribe from microphone:
|
||||||
```python
|
```python
|
||||||
from whisper_live.client import TranscriptionClient
|
from whisper_live.client import TranscriptionClient
|
||||||
client = TranscriptionClient(host, port, multilingual=True, language="hi", translate=True)
|
client = TranscriptionClient(host, port, is_multilingual=True, lang="hi", translate=True)
|
||||||
client()
|
client()
|
||||||
```
|
```
|
||||||
This command captures audio from the microphone and sends it to the server for transcription. It uses the same options as the previous command, enabling the multilingual feature and specifying the target language and task.
|
This command captures audio from the microphone and sends it to the server for transcription. It uses the same options as the previous command, enabling the multilingual feature and specifying the target language and task.
|
||||||
|
|||||||
Reference in New Issue
Block a user