We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f616e84 commit 04b4923Copy full SHA for 04b4923
nemo_asr/run_eval.py
@@ -53,8 +53,8 @@ def download_audio_files(batch):
53
54
for id, sample in zip(batch["id"], batch["audio"]):
55
audio_path = os.path.join(CACHE_DIR, f"{id}.wav")
56
- os.makedirs(os.path.dirname(audio_path), exist_ok=True)
57
if not os.path.exists(audio_path):
+ os.makedirs(os.path.dirname(audio_path), exist_ok=True)
58
soundfile.write(audio_path, np.float32(sample["array"]), 16_000)
59
audio_paths.append(audio_path)
60
durations.append(len(sample["array"]) / 16_000)
0 commit comments