Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def record_text(audio_file):
|
|
12 |
r = sr.Recognizer()
|
13 |
|
14 |
sound = audio_file
|
15 |
-
sound_type =
|
16 |
if sound_type[-1] == 'mp3':
|
17 |
input_file = sound
|
18 |
output_file = "con_sound.wav"
|
|
|
12 |
r = sr.Recognizer()
|
13 |
|
14 |
sound = audio_file
|
15 |
+
sound_type = sound.split(".")
|
16 |
if sound_type[-1] == 'mp3':
|
17 |
input_file = sound
|
18 |
output_file = "con_sound.wav"
|