Mohammedallyl commited on
Commit
a111aff
·
verified ·
1 Parent(s): 9f7403c

Update Logic/SpeachToText.py

Browse files
Files changed (1) hide show
  1. Logic/SpeachToText.py +1 -1
Logic/SpeachToText.py CHANGED
@@ -12,7 +12,7 @@ def SpeachToTextEndPoint(Audio:UploadFile):
12
 
13
  audio=Recognizer.listen(File)
14
  Text:str=Recognizer.recognize_google(audio,language="en-US")
15
- return { Status":True,"Message":Text}
16
 
17
 
18
  except Exception as e:
 
12
 
13
  audio=Recognizer.listen(File)
14
  Text:str=Recognizer.recognize_google(audio,language="en-US")
15
+ return { "Status":True,"Message":str(Text)}
16
 
17
 
18
  except Exception as e: