Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Speech Recognition Using Python

$
0
0

@raaj1994 wrote:

Objective (To Create a model that can search our keywords in Youtube using Microphone)

Code:
import speech_recognition as sr
import webbrowser as wb
r = sr.Recognizer()
with sr.Microphone() as source:
print (‘Say Something!’)
audio = r.listen(source)
try:
text = r.recognize_google(audio)
print (‘Google thinks you said:\n’ + text)
chrome_path = wb.open(“https://youtube.com/search?q=%s” % text)
wb.get(chrome_path).open(text)
except Exception as e:
print (e)

I have successfully done this, But the code is not recognizing my main keyword “Epremy” so please guide me on how to train my code to recognize the word “Epremy”.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles