vinthony commited on
Commit
d8dcf28
1 Parent(s): 00505e3

Update src/generate_batch.py

Browse files
Files changed (1) hide show
  1. src/generate_batch.py +1 -1
src/generate_batch.py CHANGED
@@ -70,7 +70,7 @@ def get_data(first_coeff_path, audio_path, device):
70
  else:
71
  new_audio = audio_path
72
 
73
- wav = audio.load_wav(audio_path, 16000)
74
 
75
  wav_length, num_frames = parse_audio_length(len(wav), 16000, 25)
76
  wav = crop_pad_audio(wav, wav_length)
 
70
  else:
71
  new_audio = audio_path
72
 
73
+ wav = audio.load_wav(new_audio, 16000)
74
 
75
  wav_length, num_frames = parse_audio_length(len(wav), 16000, 25)
76
  wav = crop_pad_audio(wav, wav_length)