speach recognisation using python
speech recognization.
filename = input("please enter audio with extension ")#extension in .wav
with sr.AudioFile(filename) as source:
audiofile = recog.listen(source)
try:
text = recog.recognize_google(audiofile)
print(text)
except:
print("check internet connection")
Comments
Post a Comment