Skip to content

Commit

Permalink
Update refspec (NVIDIA#5321)
Browse files Browse the repository at this point in the history
Signed-off-by: smajumdar <[email protected]>

Signed-off-by: smajumdar <[email protected]>
Signed-off-by: Hainan Xu <[email protected]>
  • Loading branch information
titu1994 authored and Hainan Xu committed Nov 29, 2022
1 parent 7966e2d commit 76da91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/speech_recognition/convert_hf_dataset_to_nemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def map_dataset_to_nemo(batch):

soundfile.write(audio_filepath, batch['audio']['array'], samplerate=cfg.sampling_rate, format='wav')

batch['duration'] = librosa.get_duration(batch['audio']['array'], sr=batch['audio']['sampling_rate'])
batch['duration'] = librosa.get_duration(y=batch['audio']['array'], sr=batch['audio']['sampling_rate'])
return batch

return map_dataset_to_nemo
Expand Down

0 comments on commit 76da91c

Please sign in to comment.