helloWorld199 commited on
Commit
dd168eb
1 Parent(s): 7b8da10

from wav to mp3 stereo output

Browse files
Files changed (1) hide show
  1. src/main.py +1 -1
src/main.py CHANGED
@@ -131,7 +131,7 @@ def convert_to_stereo(audio_path):
131
  if type(wave[0]) != np.ndarray:
132
  print("QUI DENTRO STEREOOOOOOOOO!")
133
  stereo_path = f'{os.path.splitext(audio_path)[0]}_stereo.wav'
134
- command = shlex.split(f'ffmpeg -y -loglevel error -i "{audio_path}" -ac 2 -f wav "{stereo_path}"')
135
  subprocess.run(command)
136
  return stereo_path
137
  else:
 
131
  if type(wave[0]) != np.ndarray:
132
  print("QUI DENTRO STEREOOOOOOOOO!")
133
  stereo_path = f'{os.path.splitext(audio_path)[0]}_stereo.wav'
134
+ command = shlex.split(f'ffmpeg -y -loglevel error -i "{audio_path}" -ac 2 -f mp3 "{stereo_path}"')
135
  subprocess.run(command)
136
  return stereo_path
137
  else: