Skip to content

Commit

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

Signed-off-by: smajumdar <[email protected]>
  • Loading branch information
titu1994 authored Nov 4, 2022
1 parent 0fafc45 commit 2531d04
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 2531d04

Please sign in to comment.