asahi417 commited on
Commit
acf74b4
1 Parent(s): 2dae5d5
Files changed (1) hide show
  1. 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 / sr * sampling_rate):ceil(end / sr * sampling_rate)]
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: