mgokg commited on
Commit
aabc8a1
·
verified ·
1 Parent(s): f1c8001

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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."