Це відео не доступне.
Перепрошуємо.
Don't Buy Alexa! Build Your Own. Create a Virtual Assistant with Python | Python Project | Jarvis AI
Вставка
- Опубліковано 7 сер 2024
- Programmers can get anything for free, even Alexa. Building your own (hot) personal assistant - how cool that is! 😁 You just need 20 lines of Python code. 😎
Code: github.com/ProgrammingHero1/r...
If you face any coding related issues or anything, just join our Discord server and we're waiting for you: / discord
#python #hack #alexa #crush #special #romantic #pythonhack #amazona #amazonalexa #programming #fun #project
WHAT IS THE VIDEO ABOUT?
Save your money and build your own Alexa.
Make her do anything, yeah anything. She is all yours.
VIDEO TIMESTAMPS
0:27 - Grandma's new drama
0:35 - Creating project file
1:45 - Installing necessary package
3:10 - Let's start coding
---
3:10 - Alexa listening
7:33 - Alexa voice return
16:47 - Install pywhatkit package
19:30 - Working with datetime
21:30 - Install python wikipedia
25:46 - Asking romantic questions
27:03 - Install pyjokes
29:35 - Final test and ready!
Now, if you're new to the programming world and don't know what to do, go check out our app and build your own game immediately while learning.
Android App: bit.ly/AndroidProgHero
iPhone Version: bit.ly/iOSProgHero
CHECK OUT
Try a shorter version with just 4 lines of python code: bit.ly/VirtualFriendYT
ENJOYED THE VIDEO?
Save our Grandma - she'll break up with Alexa and get on a romantic relationship with Siri if you don't click on the Like button and also turn the Subscribe button from red to white. You'll have a lot of fun with him.
If you like and subscribe to this cool video, she'll be ready to be in a relationship with you. 😉
OUR SOCIAL MEDIA
Watch us on Facebook: bit.ly/FBProgHero
Peep us on Instagram: bit.ly/IGProgHero
Fly with us on Twitter: bit.ly/TWProgHero
Board with us on Pinterest: bit.ly/PTProgHero
Don't share this with your friends. They'll know your secret. 😁
We're always with you. Feel free to mail us anytime you need anything: social@programming-hero.com
Red Santa 🎅 will send you a new fresh grandma 👵, if you punch the red subscribe button
Before 1000000 billion year I pressed it🙂😜😉
I waiting for fresh grandma...
Bro tell some other functionalities we can add in it??
May I hit subscribe button if you talk about my girlfriend instead of grandma 😂😂
Jhonker bro plz bring the bangla version of its!
Who got this randomly recommended and is now thinking of creating Jarvis.
Haha, same
@@kesavae9552 let's make the next Iron man together lol
@@JustAlgato 😂, sure buddy 🙌
@@kesavae9552 😂
same boi
imagine google recommend this video because it does not want people to buy alexa
It did 💀
😂👍
Haha google sent me here 😂
no google will not reccomend bcoz it wants to sell his google home
samajh rhe ho!
samajh rahe ho!
It did
in nut shell
1. Importing speech_recognition, pyttsx3, pywhatkit, datetime, and wikipedia modules.
2. Creating a listener object from the speech_recognition module.
3. Creating a command variable to hold the voice command given by the user.
4. Creating a talk() function to convert the text to speech.
5. Creating a take_command() function to take voice commands from the user.
6. Creating a run_alexa() function to run the alexa code.
7. Creating a while loop to run the alexa code continuously.
Thanks for the check list👍🏾
which python version should I use ?
The recent one should do it
i use 3.7 and i got no problem@@moonchild-il2xs
This video is the best programming tutoring video I have watched. I couldn't press the stop or end button because I didn't get bored at any point. You did a great job keeping me focused on all the lectures you made.
Looking forward to seeing more of these videos from you🔥
This Guy in 5-10 years: “Don’t live in the Universe, make you own in 1000 lines of code!”
Program the matrix in 10 lines.
LMAO
LOL
😂😂
xD
MAA : what are u doing
MEE : learn coding
MAA : your code is romantic?
hahahaha! hats off to Maa!
Really good man. Very inspiring. After completing this project and creating my own "Alexa" I want to build an even better version for a project of mine. God bless you dude. Keep post this excellent content.
Thank you for this! I love how genuine and enthusiastic you are through the whole guide
**casually puts google, apple, and amazon out of business with a UA-cam video**
lmao
Imagine googled own product putting another product out of business
New subscriber here. Just finished my data structures along with other programming classes. I barely got out of those classes because I just never really learned how to program. These videos are very clear and well organized. Thank you!
Welcome aboard!
@@ProgrammingHero please help me, I am having issues with pyaudio installation. Can you please please PLEASE make a tutorial on how to fix that issue? Thank you very much :) By the way I subscribed!
You didn't understand data structure classes but you're here to make AI assistant?
Bro you skipped like 3 years 🤣🤣🤣🤣
@@ProgrammingHero bro please explain how to keep that ai on a device?. Should we run that python code always to use ai?.
@@_sayandas to understand how to code you have to create projects. good for them, trying to build projects to develop their understanding!
Love your enthusiasm, not to mention the in depth knowledge of Python and associated modules. You are a Certified Super Pythonista-CSP.
Great man! Love your content, you made me realize that python is not just a programming language, it's a modern world in itself.
I wasted thousands of dollars in college and learned nothing compared to what i learned here in this channel for free. You guys are amazing . You people deserve a noble prize for what you are doing here.
Imagine creating a own voice assistant which says "I have a boyfriend" when you ask it are you single
Nice idea! hahahaha!
@@ProgrammingHero Its not an idea smh, your stupid. The bot rejected you. And your very cringe
@@arunsubramanian7637 you cant even do html
amazing! you are not only educational, but enjoyable to watch! Thank you!
This is so interesting. I'm going to build it right now. Thanks for this amazing video.
This man is going to ruin alexa's whole career😂
what career 😂
😂😂😂
@Isaac W i am new to python.
So that means buddy this guy is just showing how to pull the set of codes of someone else and use it, am i right?
😄😍
@@compositingwithkushal well he just simply used some modules
I love the enthusiasm and the detailed tutoring and explanations. The fact that you seemed like you were enjoying yourself in making this video make me enjoy it too. This is amazing! Definitely looking forward to more videos and recommending them to people.
181 likes and no comments? lemme change that.
Mine doesn't work
Thanks for the well executed video. Following this I have a small working version that I can play with.
You truly are a Programming Hero. For making this tutoral fun, I will Subscribe to your channel!
Messed with these packages some time ago, just love your reactions which is why I'm watching lol.
Nice Video Man
I just subbed, I love this kind of channels with tutorials on how to automate/build cool things!
Awesome, thank you!
The issue I'm having is that I already have Alexa, so every time he says 'Alexa' my Alexa starts doing something stupid.
I really wish he had named this something else. LOL
hello, new here, just subbed, the video was very entertaining yet at the same time, very educational, i look forward to learning more vids after this.
dont buy house, make your own
😊
Not a bad idea.
Lol
ya i did that in minecraft
@@jarvistarush_pa5527 lol
Programming hero : Alexa play arianda grande
Video: PLAYS AD
Me : huh?
Thank you for a very well done video. Love your humor!
Amazing video! kudos to you and your team for this amazing project, with your added explanation and jokes in between it was very exciting to go through this and build my own alexa, it has worked for me, and tried and tested, pls dont hesitate guys to program and install these plugins.
This is the first time I notice, programing is super easy.
I love you, dude.
Please keep it continue.
Good luck
Wonderful demo of what python can do! Thanks a lot. It's really a great way to build voice-command based customized automation tools (AKA assistants).
CHEK HERE, github.com/ashraf-minhaj/Audio-Book/
you're the best such a good and entertaining way to explain how ai works you just earned a new subscriber
Thank you sir, I just watched one video of yours and I have fallen in love... the simplicity is beyond this world, thank you!
The way you speak out the content, it's just superb! Thank you for the video!
Amazon wants to know your location
😁
@@ProgrammingHero bd
I love the videos. I have a son who is learning Python in his class at school but his teacher doesn't know anymore than what is in the handouts, and my experience with coding was all the way back in the days if VB6 so this all is very different (and much easier) for me. I was trying to show him some of your projects and the first one we tried - make your own Alexa - is having some issues using the microphone to hear us speak. Any hints as to what could be causing this? Thank you for presenting things in a very clear and concise manner.
I am also facing the same problem
@@rabbanali9782 i also
Me too I am kid and it is not working tell me why?????
Learned a lot and was fun tutorial, subscribed!
I just really love the way this guy says ‘Romantic’ 😂❤️
Literally sir and his grandma are genius 😂😂... Thank you for such a best content
You're most welcome!
Man you a genius like you deserve a million upvotes this is the best applicable programming tutorial ive ever seen in my life. Thank you well explained
Imagine combining this and machine learning ai. You basically created Jarvis
Why this guy always stays romantic 😂
Cause I am!!!
@@ProgrammingHero how can i contact u
Im having a problem in this code
@@ProgrammingHero ha ha ha!
@@gadamsettybhuvanesh6191 discord server mate
@@gadamsettybhuvanesh6191 Me too i also have error so atleast your whatsapp number?
This is too good man 🔥🔥🔥.
May Santa fullfil your all wishes this Christmas 🎉🎉.
Love from India.❤️
Man! this is the first time I comment on youtube video... the 30 minutes went like 5. It is amazing the tuto.. respect!
New subscriber is here.... love it
Man, thank you so much for your generosity. This lesson was incredible, one of the best videos I have seen in my life. You are basically teaching us a super power :) wish you the best!
All I can say is wow and thank you bro, your grandma's very kind btw
This sounded interesting in the title and ended up watching the whole thing lol.
thanks man btw nice description 😁😁😁
Hold up, I came to UA-cam to watch a Java tutorial but I ended up watching this hilarious-genius video
Same I came for pfp
@@insanesoul518 php*
@@gentworm2377 From Sql videos🤚
@@insanesoul518 php = soul selling
@@manousakis01 👋 hi
I'm a new student trying to learn, so I can become a programmer with python and I have a project on how to make a port scan.
So far I already make a port scan with Python3, and it scans fine, give a date and everything working good so far.
I see on your video tutorial, it is very good.
I would like to ask for your advice if you can and guide me on how I will add this 3
in a Python script, I have:
2. System should look for all the ports between the range of 1 to 1025
3. If the Ports is open, it should create a file and add an entry for port number
4. In case of any exception for instance “host is not available”, “host name could not be resolved” or
due to any other error, you need to write that exception into the same file.
Thank you and Merry Christmas.
Hey man. I liked this video. You're doing good work.
you have amazing videos! so well done! i am pumped to use my jarvis. i programmed it on my computer for now but now i will build my own jarvis system. using a raspberry pi and a few hardware you could have your own google home style jarvis! thanks so much! does anyone know if there is a package in python for connecting to wifi devices because that would be the icing on the cake. i mean i can make a loop hole around it using wifi breakers and have a system in place when 'x' braker is powered on to turn on 'y' breaker. have the 'x' breaker connected to one of the pins on the raspberry pie, but it would be awesome if i didnt have to go that route
Sing programmers be like : now I m gonna make a virtual girlfriend who'll talk to me
Yes! with the voice of Scarlett Johansson please... like the movie
He Made a virtual gf
Bro all programmers are single
You got me!
Me too
Love you bro....I saw just two of your videos and now I wanted to start loving python and want to learn more. Thanks for making learning so easy hope I can use it for something good soon #cheers 🤟🏻
Everybody can be a master of python programmer with a teacher like you!!!!
thank you!!!!
man you are a legend doing this video it is really helpful thank you so much!!! 🙏
The best way of explaining the usage and power of Python without boring :)
Thanks a ton!
And in a romantic way😆
True
Bro can i add this project in my resume
Man that's insane!!! Esp. when you created 'talk' definition. You are legend man!!!
I recently got back into wanting to learn Python after leaving my programming class. Seeing this was incredible and I definitely want to make one for myself but I'm curious how I would make it more personal. For example, how would I ask it do something like "turn my lights off/on" or "when is my assignment due" or just something a little more human. Think like Jarvis (Tony Starks personal AI assistant). I want something that can adapt to me and have all the basics like this awesome video but have more capabilities and the ability to learn and adapt to my life style and or just become smarter on it's own. If this is possible then please someone show some videos and tell me how and what I would need to add or do to make it happen. For now I'll get to work making this. Really appreciate this video.
You would need to use other packages for these kind of things.For the lights, you would probably need to buy smart lights or something like that and then use and then use a raspberry pi to turn the lights on or off.You can also use the arduino and then put a servo motor on the light so that it turns it off, if you dont want to buy the lights, but in this case you would need to use the arduino programming language, which isnt that hard. For your project to be able to check for the due of the assignment, you would probably need to use selenium.
@@dadolab2314 Alright so that's cool. What about other things? Well beyond that I want to be able to access my ai from anywhere without opening my laptop and hitting run. I've seen that some people said you need a raspberry pi and link it to your phone and have the program running through that. I've also seen more videos on what ai can do like machine learning to predict stuff and I want to be able to link the machine learning program with the ai assistant program and have my assistant run the predictions when I ask where ever I am. There's just so much I want to do with the ai assistant and so many other ai videos like this one but the code is far more different using like an extra 5 lines for the simple tasks like he showed in the video. I basically want for there to be a way to link up all of the programs I see and make them work together and as for the other tasks I want to include I'll just add those in when I want to and make it work.
this is interesting sir, im still learning basic python programming but hoping that i could be this one in near future, may i ask, is it possible to use this ai to remotely control smart devices? like phones or pc?
Disclaimer: No Amazon is harmed during making this video.
xD
@@ProgrammingHero sir ua-cam.com/video/AKymlea8sYM/v-deo.html this is the link you have shared to me to fix the pyaudio issue. But this is not working and in this link he is showing folder called Local which was not at all present in my laptop. so please help me to rectify the issues sir.
@@pandipatipavan3804 press start + r
And type the location.
Press enter
Yes it is🤣
can anyone help me here, for completing the code at 5:58 i run my program ....it runs without error , it prints listening..... , I speak something but it cant recognize and do not give any output as text.
I appreciate the energy of this young man. Also his explanation is good. One more UA-cam hero! Way to go.
Thank you so much ❤
வணக்கம் நண்பா
@@ProgrammingHero I don't get answer
@@ProgrammingHero i have a question, i have never programmed or used python before. can i still do this if i really want or do i need to have learnt something+
@@zentteri3139 i would just follow the video, if you have problems with it stack exchange is a good place to go for help. ive found the only way to learn programming is to start doing it.
how cute are you 🤣 ..check out his expression after he changes alexa's voice from male to female
Bro has fallen in love with Alexa 😂😂
The reaction when UA-cam popped up first time was so amazing
for security reasons you should switch from using google to a local speech recognizer. the vosk api for python for example is easy to use and can even be run on raspberry pi, while also having bigger models for normal computers.
Thanks for the advice
@Program Program u mean how to implement the vost api in ur project?
@Program Program and now for other people interested you should provide a link (if theres one) so every other beginner can do it too
@@ProgrammingHero Ok, after watching this video I only have 2 questions
1- What should I change the code so that my Alexa has another name?
2- Does it work privately, that is, as Siri making requests anonymously?
@@OsoTedyfazbear3329 😮💨😓🥱🤣
Wow! thank you so much! This is so fun! Thanks alot!
I recently had an issue with the unbound local error. My friends, if you also have this error then simply change the variable called 'command' to something else in the second function so that it recognizes it as a variable in it. It doesn't recognize 'command' because it was locally created in the first function. All the best with the project guys!
could you paste your code here
@@N-MRC import speech_recognition as sr
import pyttsx3
import pywhatkit
import datetime
import wikipedia
import pyjokes
listener = sr.Recognizer()
engine = pyttsx3.init()
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[1].id)
def talk(text):
engine.say(text)
engine.runAndWait()
def take_command():
try:
with sr.Microphone() as source:
print('listening...')
voice = listener.listen(source)
command = listener.recognize_google(voice)
command = command.lower()
if 'alexa' in command:
command = command.replace('alexa', '')
print(command)
except:
pass
return command
def run_alexa():
command = take_command()
print(command)
if 'play' in command:
song = command.replace('play', '')
talk('playing ' + song)
pywhatkit.playonyt(song)
elif 'time' in command:
time = datetime.datetime.now().strftime('%I:%M %p')
talk('Current time is ' + time)
elif 'who the heck is' in command:
person = command.replace('who the heck is', '')
info = wikipedia.summary(person, 1)
print(info)
talk(info)
elif 'date' in command:
talk('sorry, I have a headache')
elif 'are you single' in command:
talk('I am in a relationship with wifi')
elif 'joke' in command:
talk(pyjokes.get_joke())
else:
talk('Please say the command again.')
while True:
run_alexa()
yoooo @firestorm531 same problem could u paste ur code
can u explain more please !!
@@WarpedAbyss
def take_command():
command = ""
try:
with sr.Microphone() as source:
print('ich höre zu...')
voice = listener.listen(source)
command = listener.recognize_google(voice, language="de-DE")
if 'James' in command:
command = command.replace('James', '')
print(command)
except:
pass
return command
Just put command="" after def take_command(): to fix your error.
I love this guy, his teaching style is entirely different and fun too..
thanks man, love you more!
@@ProgrammingHero can i add this project in my resume
Thank you very much this absolutely made think I could code on python and raspberry Pi. Amazing breakdown you made it very understandable and logical. keep up the fantastic work.
it would be good to contain in the video a part teaching to leave the "alexa" running always, without having to run in vscode or pycharm, for example create an application in the system tray or that there was only a function to start and stop, just to know if it is or not working, because I believe that just like me, many people do not know how to do this function, thanks for the video
You could create an application to leave it running I believe the lesson is just to provide proof of pythons ability and that these so called amazing fancy pieces of tech are nothing more than a few dozen lines of code.
wow, u legitimately inspired me to think of learning python . ]
well done.
I really appreciate you, man! :) Great explanation and energy. Keep going!
Thank you so much! 😀
You're the best teacher and a little bit funny , no word can define your greatness
You make python sound super easy. Thank you
"Ariana Grande is crazy and you are crazy too"😂😂 nice bro...has saved me a few bucks
This video is more informative than my 4 years of computer linguistics at uni
Man, i love how you explain what's in line by line. The command process also give me so much experience and knowledge boost.
Hope you can meet Ariana Grande soon in SUPER SIMPLE way!!
Glad to help!
@@ProgrammingHero Help i am not able to to do this error shows when i paste it and it has with every command this error is this
'pip' is not recognized as an internal or external command,
operable program or batch file.
i love the backround echo!
you very funny and a good teacher .Your explanation was perfect and clear.Wsh you the best
I don't know why I discovered this channel but *I really did a very good job* . I'm a new subscriber.
So I am gonna try this then I will ask you Questions.
😍👏
Thank you! ❤
Best programming video I've ever watched... The way he explains things makes laugh and that in tern makes it easy for us to understand without getting bored because of codes.... ♥️♥️
cool I need more of this to program hard wares and to impress my friends
Cool video imagine having Alexa voice as dark Vader 😂
All the dislikes are by Alexa developers 😂😂😂
Lol
Dislikes are also by people who don't want romantic story in the video
😂😂😂 lol
But UA-cam recommended me
@@pituboro because they don't know what is this video about. Bots!
2020 has made many Jobless, Including Alexa.
Your lectures are just awesome I loved those all thank u for all your videos
I have just fallen in love with you programming Hero /Mr.Romantic . This is gonna look like magic for my friends here in Uganda Africa . Thank you
Waw, this is a really cool video ! I watched it all the way till the end and I've immediately liked and subscribed !
Awesome! Thank you!
this made me want to play a bit with my assistant that i made a while ago before i saw this video ;-; thx man
amazing video, informative, nice humour ))) romantic video, indeed
Hey, thanks yar... Im studying python for a while but i don't know how to make python programmes more fun and crazy.. i learned it through your videos... keep updating more python tricks and fun loaded programmes....😍
Glad to hear that
10:09
He is about to destroy the whole career of jeff 😅 and google
You are definitely one of the coolest persons I have ever seen in my life
Thank you. You are awasome.
The explaination is waaaay better than other similar videos
I love the enthusiasm and the detailed tutoring and explanations. The fact that you seemed like you were enjoying yourself in making this video make me enjoy it too. This is amazing! Definitely looking forward to more videos and recommending them to people.Keep up your great work! Greetings from Ethiopia.
best tutorial ever!!! thanks a lot. I really enjoyed the tutorial
My a new subscriber but impression with your work and creative thinking