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