Spaces:
Sleeping
Sleeping
Update Logic/SpeachToText.py
Browse files- 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:
|