init
Browse files- download_audio.py +1 -1
download_audio.py
CHANGED
@@ -119,7 +119,7 @@ def get_audio(dataframe: pd.DataFrame):
|
|
119 |
if start < end <= len(wav["array"]):
|
120 |
sf.write(features[f"{side}.path"], wav["array"][start:end], wav["sampling_rate"])
|
121 |
else:
|
122 |
-
print(f"\n#### ERROR ####\n truncation error: {start}, {end}, {len(wav[
|
123 |
os.remove(features[f"{side}.path"])
|
124 |
if os.path.exists(feature_file):
|
125 |
os.remove(feature_file)
|
|
|
119 |
if start < end <= len(wav["array"]):
|
120 |
sf.write(features[f"{side}.path"], wav["array"][start:end], wav["sampling_rate"])
|
121 |
else:
|
122 |
+
print(f"\n#### ERROR ####\n truncation error: {start}, {end}, {len(wav['array'])}")
|
123 |
os.remove(features[f"{side}.path"])
|
124 |
if os.path.exists(feature_file):
|
125 |
os.remove(feature_file)
|