Hello @aman_sheik,
I have to integrate this code into uipath. This is python code and works fine in python idle and command prompt as well. Hope, you can suggest some solution.
Code:
import speech_recognition as sr
#obtain audio from the microphone
r = sr.Recognizer()
with sr.Microphone() as source:
print(“Speak into the microphone”)
audio = r.listen(source)
try:
print("Transcription: " + r.recognize_google(audio))
except sr.UnknownValueError:
print(“Audio unintelligible”)
except sr.RequestError as e:
print(“Cannot obtain results; {0}”.format(e))
Thanks ,
Anusha