jone commited on
Commit
4d51a23
1 Parent(s): 4927f1c
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def inference(audio):
18
 
19
  if input_path.endswith(".mp3"):
20
  output_path = os.path.splitext(input_path)[0] + ".wav"
21
- os.system(f"ffmpeg -y -loglevel panic -i {input_path} {output_path}")
22
  input_path = output_path
23
 
24
  # read the file and get the sample rate and data
 
18
 
19
  if input_path.endswith(".mp3"):
20
  output_path = os.path.splitext(input_path)[0] + ".wav"
21
+ os.system(f"ffmpeg -y -loglevel panic -i {input_path} -acodec pcm_s16le -ar 44100 {output_path}")
22
  input_path = output_path
23
 
24
  # read the file and get the sample rate and data