Spaces:
Runtime error
Runtime error
Hendrik Schroeter
commited on
log
Browse files
app.py
CHANGED
@@ -73,8 +73,8 @@ def mix_and_denoise(speech_rec, speech_upl, noise, snr):
|
|
73 |
meta = None
|
74 |
# Apperently chrome uses mp3 or opus?
|
75 |
for f in ("wav", "mp3", "flac", "vorbis", "opus"):
|
76 |
-
# Chrome saves files as opus now.
|
77 |
sp_kwargs["format"] = f
|
|
|
78 |
try:
|
79 |
speech, meta = load_audio(speech_file, sr, **sp_kwargs)
|
80 |
except RuntimeError:
|
|
|
73 |
meta = None
|
74 |
# Apperently chrome uses mp3 or opus?
|
75 |
for f in ("wav", "mp3", "flac", "vorbis", "opus"):
|
|
|
76 |
sp_kwargs["format"] = f
|
77 |
+
logger.info(f"Trying to load speech: {speech_file}, with codec {f}")
|
78 |
try:
|
79 |
speech, meta = load_audio(speech_file, sr, **sp_kwargs)
|
80 |
except RuntimeError:
|