Update app.py
Browse files
app.py
CHANGED
@@ -303,7 +303,7 @@ if st.button('Сгенерировать потери'):
|
|
303 |
with harvard as source:
|
304 |
audio = r.record(source)
|
305 |
|
306 |
-
orig = r.recognize_google(audio, language = "
|
307 |
|
308 |
|
309 |
|
@@ -318,7 +318,7 @@ if st.button('Сгенерировать потери'):
|
|
318 |
try:
|
319 |
with harvard as source:
|
320 |
audio = r.record(source)
|
321 |
-
lossy = r.recognize_google(audio, language = "
|
322 |
#print("Распознанный текст:", text)
|
323 |
except speech_r.UnknownValueError:
|
324 |
#st.text("Система не смогла распознать аудио")
|
@@ -338,7 +338,7 @@ if st.button('Сгенерировать потери'):
|
|
338 |
try:
|
339 |
with harvard as source:
|
340 |
audio = r.record(source)
|
341 |
-
enhanced = r.recognize_google(audio, language = "
|
342 |
#print("Распознанный текст:", text)
|
343 |
except speech_r.UnknownValueError:
|
344 |
#st.text("Система не смогла распознать улучшенное аудио")
|
|
|
303 |
with harvard as source:
|
304 |
audio = r.record(source)
|
305 |
|
306 |
+
orig = r.recognize_google(audio, language = "ru-RU")
|
307 |
|
308 |
|
309 |
|
|
|
318 |
try:
|
319 |
with harvard as source:
|
320 |
audio = r.record(source)
|
321 |
+
lossy = r.recognize_google(audio, language = "ru-RU")
|
322 |
#print("Распознанный текст:", text)
|
323 |
except speech_r.UnknownValueError:
|
324 |
#st.text("Система не смогла распознать аудио")
|
|
|
338 |
try:
|
339 |
with harvard as source:
|
340 |
audio = r.record(source)
|
341 |
+
enhanced = r.recognize_google(audio, language = "ru-RU")
|
342 |
#print("Распознанный текст:", text)
|
343 |
except speech_r.UnknownValueError:
|
344 |
#st.text("Система не смогла распознать улучшенное аудио")
|