Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ hf_model = nemo_asr.models.EncDecRNNTBPEModel.from_pretrained(
|
|
9 |
|
10 |
def convert (audio):
|
11 |
file_name = audio.name
|
12 |
-
if file_name.endswith("mp3") or
|
13 |
if file_name.endswith("mp3"):
|
14 |
sound = AudioSegment.from_mp3(audio.name)
|
15 |
sound.export(audio.name, format="wav")
|
|
|
9 |
|
10 |
def convert (audio):
|
11 |
file_name = audio.name
|
12 |
+
if file_name.endswith("mp3") or file_name.endswith("wav") or file_name.endswith("ogg"):
|
13 |
if file_name.endswith("mp3"):
|
14 |
sound = AudioSegment.from_mp3(audio.name)
|
15 |
sound.export(audio.name, format="wav")
|