Spaces:
Runtime error
Runtime error
test
Browse files
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
|