Recent Post
About me
My name is Frankentein I’m a programmer...
Theory: This document is targeted at the beginner to intermediate level windows and Linux user interested in learning about Speech Rec...
import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as source: print"say!" audio = r.listen(source, timeout=1, phrase_time_limit=5) print "recognizing" BING_KEY = "" try: msg = r.recognize_bing(audio, key=BING_KEY) print msg except sr.UnknownValueError: print"Microsoft Bing Voice Recognition could not understand audio" except sr.RequestError as e: print"check internet or validation "
This is program for Windows and if you use google api then its create error and i want to tell you that Bing API Is better the Google api . Bing api Need Bing Key . you can get key by going on this Website https://azure.microsoft.com/en-in/services/cognitive-services/speech/ YOu have to login then they give key.And if you makeing this program in Linux then You can use google api msg = r.recognize_google(audio) the you no need any key If you have any error the Live Comment or contact me on Social Network
My name is Frankentein I’m a programmer...
It doesn't work
ReplyDelete