Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -234,10 +234,10 @@ def recognize_speech_malayalam_model1(audio_file):
|
|
| 234 |
denoised_audio = wavelet_denoise(audio)
|
| 235 |
result = asr_model_malayalam(denoised_audio)
|
| 236 |
text_value = result['text']
|
| 237 |
-
converted_to_list = convert_to_list(
|
| 238 |
replaced_words = replace_words(converted_to_list)
|
| 239 |
-
|
| 240 |
-
return text_value +" -----------------> " +
|
| 241 |
|
| 242 |
## Function to handle speech recognition
|
| 243 |
def recognize_speech_malayalam2(audio_file):
|
|
|
|
| 234 |
denoised_audio = wavelet_denoise(audio)
|
| 235 |
result = asr_model_malayalam(denoised_audio)
|
| 236 |
text_value = result['text']
|
| 237 |
+
converted_to_list = convert_to_list(text_value, text_to_list())
|
| 238 |
replaced_words = replace_words(converted_to_list)
|
| 239 |
+
final_text = text_to_int(replaced_words)
|
| 240 |
+
return text_value +" -----------------> " + final_text
|
| 241 |
|
| 242 |
## Function to handle speech recognition
|
| 243 |
def recognize_speech_malayalam2(audio_file):
|