Issue with transcribing audio as a list when using timestamps #15485
Replies: 1 comment
-
|
This was a bug in the tensor-input path, not a problem with your NumPy audio. Older code assumed every timestamp batch was a Upgrade to NeMo 2.7.0 or newer, then pass a list of one-dimensional float tensors: audio = torch.from_numpy(ch1).float()
result = main_model.transcribe(
[audio],
batch_size=1,
timestamps=True,
source_lang="sk",
target_lang="sk",
)The input must already be mono at the model's expected sample rate, which is 16 kHz for Canary. If you cannot upgrade, passing a WAV filepath avoids this specific old tuple-batch bug. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I ran into an issue when transcribing audio provided as a list using a model with timestamps. I get the following error:
(model: nvidia/canary-1b-v2)
I’m wondering how it’s possible to use the model with timestamps for this type of audio input - numpy/torch array.
Has anyone encountered this problem or has experience handling this scenario?
Beta Was this translation helpful? Give feedback.
All reactions