init
Browse files- download_audio.py +1 -1
download_audio.py
CHANGED
@@ -126,7 +126,7 @@ def get_audio(dataframe: pd.DataFrame):
|
|
126 |
print(f"wav shape:{wav.shape}")
|
127 |
if wav.ndim > 1:
|
128 |
wav = wav[:, 0]
|
129 |
-
wav = wav[floor(start /
|
130 |
print(f"wav shape (after truncate):{wav.shape}")
|
131 |
# wav = wav[:int(end/sampling_rate * sr) + sr]
|
132 |
# if sr != sampling_rate:
|
|
|
126 |
print(f"wav shape:{wav.shape}")
|
127 |
if wav.ndim > 1:
|
128 |
wav = wav[:, 0]
|
129 |
+
wav = wav[floor(start / sampling_rate * sr):ceil(end / sampling_rate * sr)]
|
130 |
print(f"wav shape (after truncate):{wav.shape}")
|
131 |
# wav = wav[:int(end/sampling_rate * sr) + sr]
|
132 |
# if sr != sampling_rate:
|