Update README.md
Browse files
README.md
CHANGED
@@ -316,7 +316,7 @@ If the input is a list of paths, Canary assumes that the audio is English and Tr
|
|
316 |
predicted_text = canary_model.transcribe(
|
317 |
paths2audio_files=['path1.wav', 'path2.wav'],
|
318 |
batch_size=16, # batch size to run the inference with
|
319 |
-
)
|
320 |
```
|
321 |
|
322 |
To use Canary for transcribing other supported languages or perform Speech-to-Text translation, specify the input as jsonl manifest file, where each line in the file is a dictionary containing the following fields:
|
@@ -339,7 +339,7 @@ and then use:
|
|
339 |
predicted_text = canary_model.transcribe(
|
340 |
"<path to input manifest file>",
|
341 |
batch_size=16, # batch size to run the inference with
|
342 |
-
)
|
343 |
```
|
344 |
|
345 |
|
|
|
316 |
predicted_text = canary_model.transcribe(
|
317 |
paths2audio_files=['path1.wav', 'path2.wav'],
|
318 |
batch_size=16, # batch size to run the inference with
|
319 |
+
)[0].text
|
320 |
```
|
321 |
|
322 |
To use Canary for transcribing other supported languages or perform Speech-to-Text translation, specify the input as jsonl manifest file, where each line in the file is a dictionary containing the following fields:
|
|
|
339 |
predicted_text = canary_model.transcribe(
|
340 |
"<path to input manifest file>",
|
341 |
batch_size=16, # batch size to run the inference with
|
342 |
+
)[0].text
|
343 |
```
|
344 |
|
345 |
|