vinthony commited on
Commit
20a8eb0
1 Parent(s): 0f9de5e

Update src/generate_batch.py

Browse files
Files changed (1) hide show
  1. src/generate_batch.py +1 -1
src/generate_batch.py CHANGED
@@ -65,7 +65,7 @@ def get_data(first_coeff_path, audio_path, device):
65
 
66
  if '.mp3' in audio_path:
67
  new_audio = audio_path.replace('.mp3', '.wav')
68
- command = 'ffmpeg -i '+ audio_path + ' -acodec pcm_s16le -ac 1 -ar 16000 ' + new_audio
69
  subprocess.call(command, shell=platform.system() != 'Windows')
70
  else:
71
  new_audio = audio_path
 
65
 
66
  if '.mp3' in audio_path:
67
  new_audio = audio_path.replace('.mp3', '.wav')
68
+ command = 'ffmpeg -i '+ audio_path + ' ' + new_audio
69
  subprocess.call(command, shell=platform.system() != 'Windows')
70
  else:
71
  new_audio = audio_path