mgokg commited on
Commit
cacfc38
·
verified ·
1 Parent(s): 578579c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def transcribe_audio(audio):
30
  with sr.AudioFile(audio) as source:
31
  audio_data = recognizer.record(source)
32
  try:
33
- text = recognizer.recognize_google(audio_data)
34
  return text
35
  except sr.UnknownValueError:
36
  return "Speech recognition could not understand the audio."
 
30
  with sr.AudioFile(audio) as source:
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."