Ask coding questions

← Back to all posts
Python : How can I add Voice Recognition?
TayoYuva

Hello,
How can I add Voice Recognition, in Python?

Thanks,
Tayoyuva

Answered by RYANTADIPARTHI [earned 5 cycles]
View Answer
Voters
TayoYuva
Comments
hotnewtop
RYANTADIPARTHI

Solution

first, run this command in the shell. pip install SpeechRecognition, then, try this code.

like that.
It should work

OldWizard209

see if this code works:

But first you need to go to the shell an do pip install SpeechRecognition and pip install PyAudio
Also, you need to have a functioning default mic.
Hope this helps.

devyx

mine wont pickup me saying anything

TayoYuva

@RYANTADIPARTHI @OldWizard209 @Bookie0, Thanks a lot.
@RYANTADIPARTHI, Thanks, your solution is working.

RYANTADIPARTHI

@TayoYuva no problem :)

Bookie0
NoNameByProgram

It doesn't work on repl.it sadly.

Bookie0

I'll leave you some links to learn how to do it:

Check this out! And this too. And perhaps this as well!

Good luck!! ;)