Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,6 +31,7 @@ def transcribe_audio(audio):
|
|
31 |
audio_data = recognizer.record(source)
|
32 |
try:
|
33 |
text = recognizer.recognize_google(audio_data, language="de-DE")
|
|
|
34 |
return text
|
35 |
except sr.UnknownValueError:
|
36 |
return "Speech recognition could not understand the audio."
|
|
|
31 |
audio_data = recognizer.record(source)
|
32 |
try:
|
33 |
text = recognizer.recognize_google(audio_data, language="de-DE")
|
34 |
+
text = ask_llm(text)
|
35 |
return text
|
36 |
except sr.UnknownValueError:
|
37 |
return "Speech recognition could not understand the audio."
|