I was thiking about stopping and makinig "how to become a millionaire" courses and selling them for the low price of $4999. Bad idea? jk...I will never stop tutorials and courses :)
@@TraversyMedia we already have someone who's literally using "as-millionaire" like a file extension for every single video, we don't want any more of that kind :v jk, we already lost 1 newboston, dont wanna lose anymore
@Florida's Overlord voice recognition doesn't need internet for run but further it need internet when using voice recognition it search for something as per user voice
This is by far one of your best videos yet! Keep up the awesome work! Would be awesome if u make a follow up video explaining the process behind how you actually learned all this and read through the documentation and all of that stuff behind the scenes!
@@RameenFallschirmjager I can try something like that, it is just hard to put into an organized manner. When I learn I am all over the place lol Ill seee what I can do though. Maybe I can just freestyle record me learning something
@@TraversyMedia Thanks brad. The most important thing in creative work is the thought process. Show us your thought process and how ideas come to your mind and how you study to develop new stuff. I know it's hard but if we have some clue about your development process it opens our eyes to new areas.
I’m new to coding and I’ve looked up sooooo many tutorials, blogs, websites, etc on how to do this and you helped me understand everything in under 30 minutes. Thank you so much and God Bless you .😊
I tried copying the code, and pasting it into my IDE. It didn't work. Then I watched the video, coded it myself, and it worked! This is worth watching the whole video guys!
Loved your face in 24:45 when I just realize that you create a "machine from the future"! You are awesome bro. Thanks for the effort. Have a great holidays.
Fantastic Tutorial, thank you so much. BTW, to those who facing an issue with speechregonition library installation, please download the following libraries in order: 1. pip install pipwin 2. pipwin install pyaudio
pipwin : The term 'pipwin' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + pipwin install pyaudio + ~~~~~~ + CategoryInfo : ObjectNotFound: (pipwin:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
@@TraversyMedia Even so, it is an AMAZING starting point. I've already messed with Arduino/Raspberry Pi and with this content my brain started to think in a LOT of things to do with IoT. Once again, thank you very much man. Also to make the learning process SO EASY.
You're the best. Oh my goodness. This literally made my day. A lot of ideas now running through my head. Don't stop. Pls Dont Stop. Falling in love with Python anew
Awesome tutorial you are my mentor I am 29 am I have learnt html css and have now started javascript but friends say am old and too late for me to learn programming but I hope to one day become like you. Thanks very much
Amazing tutorial Brad! Your laravel tutorial helped me to program a working model in a weekend. This python voice assistant is super cool. Thank you and many blessings!
update/edit for anyone interested: the two imports below work just fine as well! import time import datetime elif "what time is it" in voice_data: print("Time: ", time.ctime()) elif "what day is it" in voice_data: print(datetime.datetime.now())
Omg loved this guy...complete knowledge in speech recognition in only 26 minutes...finally get something which I actually looking for..Thanks for sharing your knowledge with us.. Appreciate your love. Lots of love from India.
Ok this is for anyone new (like myself), who is trying build their own AI. If you are using Pyttsx3 when ever you create a function make sure to put engine.runAndWait() at the end of the function so that the AI can speak other wise it won't. Took me all night to figure that out, watched videos and went through reddit but no one could figure it out. Also thanks Traversy, I was trying to find a video on voice recog and you did an amazing job at explaining it, I've been looking for documents on it but could not for the life of me find anything useful on it, and then you talked about the Kit extension which is helping me understand coding as well. So again thanks and hopefully this helps someone who is running into the same issue as I did last night lmao.
Brad is THE MAN Im always so thrilled when I search for topics I'm trying to learn, and behold, Brad has already got a video on the topic, well delivered. Thanks Brad!
One addition is to have it respond only when the question starts with Alexis, similar to when you say Alexa or Ok goggle, is called the key word. Other improvement is to tied it up with speach processing to capture the intention and being able to respond to multple questions that ask the same thing, for example what is your name? or how you want to be called? etc.
For anyone programming this on non-Mac: PyObjC is a package only for Mac. I run into issues installing that (Fedora 30) and it wasted some of my time. Instead playsound will use GStreamer for linux. As far I know it is already available in most linux distros. There was a bug on my side that seems to be common (bug is reported on playsound github but there was no response) which was caused by missing gi module. I had to symlink my global Python gi package to my venv and then it worked. I am not sure if that was the best solution. Maybe someone with better experience might clarify that. I found all steps I described here on the net, so they are not my idea.
@@sampreethnaik3841 I followed their official guide for linux debian and it worked. No need for symlink: pygobject.readthedocs.io/en/latest/getting_started.html
Yeah, there is some really cool stuff out there to use for free :) If you go into production and you get thousands of users, etc then there is usually a paywall, but chances are if your app is that popular you are making money anyway
@@TraversyMedia I don't know about applications because I'm Web developer, but you think it would be good combination with discord bot? Could be interesting
Fab explanation sir. I just completed Python basics including OOP, and was willing to go for this type of project. I searched a number of places, that made me disheartened, until I got you. Thank you so much sir for your extraordinary efforts.
Why don't u use green background...bcz interactions will be great... If u have any time(only if u have) to make live stream like coding garden, then do... 😍😍
@@alwaysgrowww I tried the green screen, but didn't really care for it. I like the idea of live streaming but not sure i would be good at it. If I do it will be on Twitch not CZcams. I would want a smaller audience
I've been looking for a voice assistant tutorial. This cannot be beat! I've been wanting to work on integrating a voice assistant into a little robot/ rc car. One that also uses opencv with a camera so it can drive autonomously. Have it drive itself to any room in the house to deliver messages to my kids. Lol
Hello. I loved what you did. Thank you very much. But I have some doubts. 1. If I make this app in my laptop will I be able to use it in my phone? 2. If I call the assistant by its name will it respond to me in home screen? 3. Can I give any access to turn off my phone or switch it on? Please please please can you answer my questions it's really important 😊😊
Nice tutorial. Was just trying to build a personal assistant on a Raspberry Pi the other day. But getting both its microphone and speaker to work seemed a bit of a mess. Still keep trying though.
On linux (fedora and similar): sudo dnf install python-devel python3-pyaudio portaudio-devel pip install pyaudio Mac (not sure tho as I'm not using it): brew install pyaudio pip install pyaudio
If you forced Failed building wheel for pyaudio problem, just type " pip install pipwin " and then " pipwin install pyaudio " pipwin is like pip, but it installs precompiled Windows binaries provided by Christoph Gohlke.
can anyone help i was following this tutorial along but every time i run the scripts and say something it does not do anything not printing the text and not showing any error
For those trying this tutorial with python > 3.7, you need to install pyaudio from a .whl file manually. Just download the file specific to your version of python from here: www.lfd.uci.edu/~gohlke/pythonlibs/?fbclid=IwAR1wcRom_uj5BuE-L4HMGS_sOBuCMmWTDXKjfE71WRTs9uW61QEQbmQEW1o#pyaudio and after that use "pip install .\filename.extension"
11:59 search for dogs 🤣🤣🤣🤣 By the way nice video man !!! ... Keep it up I have seen your face_recognition method in python it's really cool I like it... Great explained .. Thank you sir have a nice day ! 🙂
Instead of calculating a random number for the audio file name, you could use the UUID module: import uuid audio_id = uuid.uuid4 audio_file = f"audio-{audio_id}.mp3"
This was unexpected but obvious. I had my script running at the time you began your demo at 24:30 and of course my script answered your questions as it heard you speaking. Haha
I am getting error while installing PyObjC library FileNotFoundError: [Errno 2] No such file or directory: '/System/Library/CoreServices/SystemVersion.plist' pls reply
Brad, just don't ever stop making tutorials
we need u...
I was thiking about stopping and makinig "how to become a millionaire" courses and selling them for the low price of $4999. Bad idea? jk...I will never stop tutorials and courses :)
@@TraversyMedia we already have someone who's literally using "as-millionaire" like a file extension for every single video, we don't want any more of that kind :v
jk, we already lost 1 newboston, dont wanna lose anymore
@@techtian4351 I am still disappointed about Bucky vanishing. I learned a ton of what I know from him back in the day
@@TraversyMedia I am also missing Bucky
Because of him I learnt python in 2 days
@@rayavarapuvikram1 who was he? Can you provide more info?
Conspiracy Theory: Brad Traversy is an alien with knowledge outta this world. He was sent to our planet to help us gain knowledge
Someone's been watching dev ed :D
You have been watching DevEd I see :)
Traversy Media i agree to him hence i said this here! 😁. It is because of you i know programming. Much love from India 🥰
Brad is a friend in need! Oh, and did I mention he's a friend indeed?! 👍
True
I love you man. no lie, You're a programming angel
He's god father of programming. Get well soon traversy😔
@Florida's Overlord voice recognition doesn't need internet for run but further it need internet when using voice recognition it search for something as per user voice
This is by far one of your best videos yet! Keep up the awesome work! Would be awesome if u make a follow up video explaining the process behind how you actually learned all this and read through the documentation and all of that stuff behind the scenes!
Thank you friend :)
Yes, I want to know these kind of things that you mentioned too.
@@RameenFallschirmjager I can try something like that, it is just hard to put into an organized manner. When I learn I am all over the place lol Ill seee what I can do though. Maybe I can just freestyle record me learning something
@@TraversyMedia Thanks brad. The most important thing in creative work is the thought process. Show us your thought process and how ideas come to your mind and how you study to develop new stuff. I know it's hard but if we have some clue about your development process it opens our eyes to new areas.
I’m new to coding and I’ve looked up sooooo many tutorials, blogs, websites, etc on how to do this and you helped me understand everything in under 30 minutes. Thank you so much and God Bless you .😊
I tried copying the code, and pasting it into my IDE. It didn't work. Then I watched the video, coded it myself, and it worked! This is worth watching the whole video guys!
Finally after months of struggling, I now understand python and this video actually made sense. 🤣 Thanks , I really enjoyed your content.
Loved your face in 24:45 when I just realize that you create a "machine from the future"! You are awesome bro. Thanks for the effort. Have a great holidays.
Fantastic Tutorial, thank you so much. BTW, to those who facing an issue with speechregonition library installation, please download the following libraries in order:
1. pip install pipwin
2. pipwin install pyaudio
pipwin : The term 'pipwin' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At line:1 char:1
+ pipwin install pyaudio
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (pipwin:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Dang, just copying your code made me feel like a computer wizard.
Man this is so cool. This is why I want to learn to code: he has an idea and then he just makes it in 20 minutes.
What a great tutorial (as always), Brad!
You gave me an idea: A Twitter speech assistant to tweet with just your voice.
Amazing how easy it is. I didn't expect that. Using this with Arduino or Raspberry Pi GPIO, OMG!!!! Thank you so much Brad!!!!
Same here. I find that a lot of this stuff is easier than I initially thought. Obviously this is a very simple example, but still..
@@TraversyMedia Even so, it is an AMAZING starting point. I've already messed with Arduino/Raspberry Pi and with this content my brain started to think in a LOT of things to do with IoT. Once again, thank you very much man. Also to make the learning process SO EASY.
You're the best. Oh my goodness. This literally made my day. A lot of ideas now running through my head. Don't stop. Pls Dont Stop.
Falling in love with Python anew
Awesome tutorial you are my mentor I am 29 am I have learnt html css and have now started javascript but friends say am old and too late for me to learn programming but I hope to one day become like you. Thanks very much
Amazing tutorial Brad! Your laravel tutorial helped me to program a working model in a weekend. This python voice assistant is super cool. Thank you and many blessings!
update/edit for anyone interested: the two imports below work just fine as well!
import time
import datetime
elif "what time is it" in voice_data:
print("Time: ", time.ctime())
elif "what day is it" in voice_data:
print(datetime.datetime.now())
If you're on Windows, you don't appear to need PyObjC. I couldn't install it and the code worked without it, which makes sense.
Omg loved this guy...complete knowledge in speech recognition in only 26 minutes...finally get something which I actually looking for..Thanks for sharing your knowledge with us.. Appreciate your love. Lots of love from India.
Ok this is for anyone new (like myself), who is trying build their own AI. If you are using Pyttsx3 when ever you create a function make sure to put engine.runAndWait() at the end of the function so that the AI can speak other wise it won't. Took me all night to figure that out, watched videos and went through reddit but no one could figure it out.
Also thanks Traversy, I was trying to find a video on voice recog and you did an amazing job at explaining it, I've been looking for documents on it but could not for the life of me find anything useful on it, and then you talked about the Kit extension which is helping me understand coding as well. So again thanks and hopefully this helps someone who is running into the same issue as I did last night lmao.
Just planed to start learning Python from next year. Great Video as Always..
It really shows how much you can do with Python with just a few lines of code. Great video Brad!
If you wish to convert text to speech while offline, use pyttsx3 library.
Natesh M Bhat we had a pull request to the repo to switch to it
This is interesting, Brad, I was literally clapping for you, wow! amazing. well done boss.
Brad is THE MAN
Im always so thrilled when I search for topics I'm trying to learn, and behold, Brad has already got a video on the topic, well delivered.
Thanks Brad!
One addition is to have it respond only when the question starts with Alexis, similar to when you say Alexa or Ok goggle, is called the key word. Other improvement is to tied it up with speach processing to capture the intention and being able to respond to multple questions that ask the same thing, for example what is your name? or how you want to be called? etc.
For anyone programming this on non-Mac: PyObjC is a package only for Mac. I run into issues installing that (Fedora 30) and it wasted some of my time. Instead playsound will use GStreamer for linux. As far I know it is already available in most linux distros.
There was a bug on my side that seems to be common (bug is reported on playsound github but there was no response) which was caused by missing gi module. I had to symlink my global Python gi package to my venv and then it worked.
I am not sure if that was the best solution. Maybe someone with better experience might clarify that. I found all steps I described here on the net, so they are not my idea.
Thanks bro
@@sampreethnaik3841 I followed their official guide for linux debian and it worked. No need for symlink: pygobject.readthedocs.io/en/latest/getting_started.html
hi love your videos!! one question !!!!
pyobjc is only for macos what can i use instead of that in windows??
Insane I didn't knew such api exist to use freely. Amazing video!
Yeah, there is some really cool stuff out there to use for free :) If you go into production and you get thousands of users, etc then there is usually a paywall, but chances are if your app is that popular you are making money anyway
@@TraversyMedia I don't know about applications because I'm Web developer, but you think it would be good combination with discord bot? Could be interesting
Fab explanation sir. I just completed Python basics including OOP, and was willing to go for this type of project. I searched a number of places, that made me disheartened, until I got you. Thank you so much sir for your extraordinary efforts.
You're on your way to 1M subs! Thanks mate for your generosity and persistence on bringing new free tutorials!
Brad your video is more valuable than entertainment!!
What a fabulously useful and fun 20 minute tutorial - absolutely the BEST - thanks!
What a man! This is how a tutorial should be. You are amazing bro. Love & Respect from IN
yo, dude can you tell me what's this program he is useing?
@@yubx wdym he is using python.
For Mac Users having trouble installing pyaudio , install homebrew and type these commands:
brew install portaudio
pip install pyaudio
Thank you! This is much appreciated
People on Windows may face problem with pyaudio I faced the same
pip install pipwin
pipwin install pyaudio
This solution worked! Thank me later
Thanks man This worked!!!
Great mate.... It worked. Tks a bunch
Brad, is this ur new hair style???
Actually, waited alot for this video from when i saw ur github repo ...
Adv. Merry Christmas brad!
Same haircut I always have it is just combed, I just always wear a hat :)
Why don't u use green background...bcz interactions will be great... If u have any time(only if u have) to make live stream like coding garden, then do... 😍😍
@@alwaysgrowww I tried the green screen, but didn't really care for it. I like the idea of live streaming but not sure i would be good at it. If I do it will be on Twitch not CZcams. I would want a smaller audience
This was the coolest thing I ever watched in all of the tutorials. Gonna apply it to our project. Thank you so much!
I've been looking for a voice assistant tutorial. This cannot be beat! I've been wanting to work on integrating a voice assistant into a little robot/ rc car. One that also uses opencv with a camera so it can drive autonomously. Have it drive itself to any room in the house to deliver messages to my kids. Lol
Hello. I loved what you did. Thank you very much. But I have some doubts.
1. If I make this app in my laptop will I be able to use it in my phone?
2. If I call the assistant by its name will it respond to me in home screen?
3. Can I give any access to turn off my phone or switch it on?
Please please please can you answer my questions it's really important 😊😊
me: 25:27
random cat in the street : sorry I did not get that.
Nice tutorial.
Was just trying to build a personal assistant on a Raspberry Pi the other day. But getting both its microphone and speaker to work seemed a bit of a mess. Still keep trying though.
Did it work with the raspberry pi ?
@@vishnudut7079 run on rasperri
Really enjoying your content, Brad! Watched only one video of yours and immediately subscribed! Thank you :)
Lol this guy basically created Alexa in under 30 minutes. You gotta love Brad
I am struggling with installing pyaudio. Setup.py install keeps giving errors
Bro is python version 3.2 or less those only support pyaudio
Install using pipwin.
pip install pipwin
pipwin install pyaudio
@@papithecollector your comment was very helpful thnx bro
@@papithecollector worked for me..grt stuff..thank you
On linux (fedora and similar):
sudo dnf install python-devel python3-pyaudio portaudio-devel
pip install pyaudio
Mac (not sure tho as I'm not using it):
brew install pyaudio
pip install pyaudio
It can even pick up your Boston accent! good one Brad. More Python please
Great tutorial. the only problem I found was "you make it look so easy" Well do BRAD
Brad,can you please make something like this but with React + Google DialogFlow?
I will seriously consider it :)
@@TraversyMedia Thank you very much. Would really appreciate that and I think it will be useful for a lot people here :)
3 words: This... is... awesome!
Congrats.. You make me wanna learn Python!!
The best developer channel on youtube.
Indeed this helped me a lot building an application which involves speech recognition. Thanks for the helping hand Brad. You are a genius man.
hi you have any idea to implement this on android?
@@bilalrenoguys not exactly subject of R&D.
Bro you are the best programmer i ever seen
If you forced Failed building wheel for pyaudio problem, just type " pip install pipwin " and then " pipwin install pyaudio "
pipwin is like pip, but it installs precompiled Windows binaries provided by Christoph Gohlke.
Thank you
Thank You Mate!
I was sorta confused when Pyaudio wasn't installing....
This helped me a lot!
Can u please tell me which code editor he is using to write and execute code above?
Hello Brad. Thanks a lot for this tutorial.
How to install PyObjC in windows?
It is available only for mac.
Any equivalent?
I'm having the same issue, did you managed to solve it?
@@kerenkalifa nope
Anirudh ok thanks
@@kerenkalifa Do reply here if you find one.
"PyObjC only supports macOS and does not support other platform (iOS, Linux, …)"
How the frick did Brad just create a base for alexa or something in less than half an hour
CONFIRMED: BRAD IS GOD
Amazing tutorial bro. Created this for our family PC. Everyone really had fun with it.
That was remarkably comprehensible 👍🏻
Even though you are not singing with the Limp Bizkits anymore, you are still cool
Don't need to watch the video to know it's going to be awesome :)
Wow, this is really cool. The speech recall is exactly what I'm saying. Very impressive!
Hey when I run the code, it doesn't pick up any sound. I took care of all of the errors but I can't get it to start recording my voice. Any solutions?
Hi, I'm having the same issue. Can someone please help me out?
same with my case please help
it was working first time but it stopped to work after 2 times!
PyAudio isn't downloaded
The best part 😂😂😂 25:26
haha I knew you guys would like that
can anyone help i was following this tutorial along but every time i run the scripts and say something it does not do anything not printing the text and not showing any error
Yes...it is not working...it says respond function not defined
Or nontype error of voice_data
For those trying this tutorial with python > 3.7, you need to install pyaudio from a .whl file manually. Just download the file specific to your version of python from here: www.lfd.uci.edu/~gohlke/pythonlibs/?fbclid=IwAR1wcRom_uj5BuE-L4HMGS_sOBuCMmWTDXKjfE71WRTs9uW61QEQbmQEW1o#pyaudio and after that use "pip install .\filename.extension"
Thanks Brad. Been wanting to write a program like this for a long long time. Again, thanks man.
That was amazing Brad and a great add on for any portfolio project!! you're the man merry christmas too
great video man it can really help newbies like me
You are truly a coding genius!
You're so interesting to hear man. Keep up the awesome work!
Just finished your Modern JS course on Udemy -- will be keeping my open for when this is offered. Keep up the great work!
I'm in Node & Angular but I'll gonna try this out. It has lots of applications.
11:59 search for dogs 🤣🤣🤣🤣 By the way nice video man !!! ... Keep it up I have seen your face_recognition method in python it's really cool I like it... Great explained .. Thank you sir have a nice day ! 🙂
This is more than amazing. Kudos, Brad!
Thank you, for sharing these great videos, it's always refreshing to see your videos :)
No Red Sox cap this time around? In any case fantastic tutorial as always Brad!
Great video!! You explained what each line of code does! Nice! 😁
Almost A million subscribers 🤩😍..courage sir Brad
You are making it so easy to learn bro , thank you
Thanks Brother i done it
whole Heartedly Thanks
love from India
"Happy Coding"
Instead of calculating a random number for the audio file name, you could use the UUID module:
import uuid
audio_id = uuid.uuid4
audio_file = f"audio-{audio_id}.mp3"
Really strange seeing you without a hat. Good tutorial as always. Hope you will make even more python tutorials.
Amazing Tutorial Sir.
Thank you very much.
I switched to demo and this was so amazing!!!
You make my dag happy. What a great explanation.
Hopely more of kind of this stuff about speech or image recognition in Flask or Django.
Love your videos Brad ❤️
Hi Brad, I have depression and social phobia, I wish I could have the strength to go forward like you
You are getting wild, Brad.
You have out done yourself! Thanks for your hard work. It really is appreciated.
I enjoyed following your tutorial so much.Thank you!
25:27 😂😂.Awesome video.
Thank you man, this is so helpful and well explained. You're the best!
@rayavarapuvikram1 thank you for your github pull request adding offline tts with pypi.org/project/pyttsx3/
This was unexpected but obvious. I had my script running at the time you began your demo at 24:30 and of course my script answered your questions as it heard you speaking. Haha
Lol
Hey Brad you're awesome!!
you taught me everything i know about python
Hey brad, you are always awesome. and the good news is: only 50K left to achieve 1M milestone
I am getting error while installing PyObjC library
FileNotFoundError: [Errno 2] No such file or directory: '/System/Library/CoreServices/SystemVersion.plist'
pls reply
PyObjC can only be installed at MacOS
Tapan Dabrai or window 10 what I use sir plz help me
This is amazing. One of the best tutorials I
Awesome .... thumbs up for ur work ♥️
Thanks brad for making my life simpler :)