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

Popular posts from this blog

Project 2: pdf extractor using python

environment creation on python

spealized the work. Be ready for the future