Це відео не доступне.
Перепрошуємо.

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

КОМЕНТАРІ • 12 тис.

  • @ProgrammingHero
    @ProgrammingHero  3 роки тому +1207

    Red Santa 🎅 will send you a new fresh grandma 👵, if you punch the red subscribe button

    • @Rishikesh-24
      @Rishikesh-24 3 роки тому +29

      Before 1000000 billion year I pressed it🙂😜😉

    • @Amanda-fv2te
      @Amanda-fv2te 3 роки тому +10

      I waiting for fresh grandma...

    • @satoshiking9574
      @satoshiking9574 3 роки тому +14

      Bro tell some other functionalities we can add in it??

    • @vishalkumarsingh5509
      @vishalkumarsingh5509 3 роки тому +14

      May I hit subscribe button if you talk about my girlfriend instead of grandma 😂😂

    • @parthiveshill2695
      @parthiveshill2695 3 роки тому +2

      Jhonker bro plz bring the bangla version of its!

  • @JustAlgato
    @JustAlgato 3 роки тому +3324

    Who got this randomly recommended and is now thinking of creating Jarvis.

    • @kesavae9552
      @kesavae9552 3 роки тому +39

      Haha, same

    • @JustAlgato
      @JustAlgato 3 роки тому +53

      @@kesavae9552 let's make the next Iron man together lol

    • @kesavae9552
      @kesavae9552 3 роки тому +17

      @@JustAlgato 😂, sure buddy 🙌

    • @JustAlgato
      @JustAlgato 3 роки тому +11

      @@kesavae9552 😂

    • @sub-vu4sp
      @sub-vu4sp 3 роки тому +9

      same boi

  • @akimcarrot3832
    @akimcarrot3832 3 роки тому +692

    imagine google recommend this video because it does not want people to buy alexa

  • @murugamurgan3180
    @murugamurgan3180 Рік тому +95

    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.

    • @simphiweyende6346
      @simphiweyende6346 10 місяців тому +1

      Thanks for the check list👍🏾

    • @moonchild-il2xs
      @moonchild-il2xs 8 місяців тому

      which python version should I use ?

    • @TheMusicerN
      @TheMusicerN 7 місяців тому

      The recent one should do it

    • @manu_ovg
      @manu_ovg 6 місяців тому

      i use 3.7 and i got no problem@@moonchild-il2xs

  • @josephsmart5602
    @josephsmart5602 11 місяців тому +6

    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🔥

  • @khank1448
    @khank1448 3 роки тому +466

    This Guy in 5-10 years: “Don’t live in the Universe, make you own in 1000 lines of code!”

  • @sahalayamon
    @sahalayamon 3 роки тому +90

    MAA : what are u doing
    MEE : learn coding
    MAA : your code is romantic?

  • @OliverCaneteOfficial
    @OliverCaneteOfficial Рік тому +14

    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.

  • @jmaguilar5778
    @jmaguilar5778 2 роки тому +12

    Thank you for this! I love how genuine and enthusiastic you are through the whole guide

  • @_Nothsa
    @_Nothsa 3 роки тому +138

    **casually puts google, apple, and amazon out of business with a UA-cam video**

    • @BytedDev
      @BytedDev 3 роки тому +1

      lmao

    • @mavdotj
      @mavdotj 3 роки тому

      Imagine googled own product putting another product out of business

  • @WillowWarrenFarms
    @WillowWarrenFarms 3 роки тому +59

    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!

    • @ProgrammingHero
      @ProgrammingHero  3 роки тому +6

      Welcome aboard!

    • @naomihotarutadashii9110
      @naomihotarutadashii9110 2 роки тому

      @@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!

    • @_sayandas
      @_sayandas Рік тому +1

      You didn't understand data structure classes but you're here to make AI assistant?
      Bro you skipped like 3 years 🤣🤣🤣🤣

    • @nagamani1215
      @nagamani1215 Рік тому

      ​@@ProgrammingHero bro please explain how to keep that ai on a device?. Should we run that python code always to use ai?.

    • @Mandy-gr7qg
      @Mandy-gr7qg Рік тому

      @@_sayandas to understand how to code you have to create projects. good for them, trying to build projects to develop their understanding!

  • @Observer-a11
    @Observer-a11 2 роки тому +11

    Love your enthusiasm, not to mention the in depth knowledge of Python and associated modules. You are a Certified Super Pythonista-CSP.

  • @MOHSINALI-xh2ss
    @MOHSINALI-xh2ss Рік тому +4

    Great man! Love your content, you made me realize that python is not just a programming language, it's a modern world in itself.

  • @iamnexom
    @iamnexom 2 роки тому +14

    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.

  • @phani5195
    @phani5195 3 роки тому +82

    Imagine creating a own voice assistant which says "I have a boyfriend" when you ask it are you single

    • @ProgrammingHero
      @ProgrammingHero  3 роки тому +14

      Nice idea! hahahaha!

    • @arunsubramanian7637
      @arunsubramanian7637 2 роки тому

      @@ProgrammingHero Its not an idea smh, your stupid. The bot rejected you. And your very cringe

    • @affanarsyad2209
      @affanarsyad2209 2 роки тому +3

      @@arunsubramanian7637 you cant even do html

  • @randor73
    @randor73 2 роки тому +2

    amazing! you are not only educational, but enjoyable to watch! Thank you!

  • @sumangoswami2620
    @sumangoswami2620 2 роки тому +5

    This is so interesting. I'm going to build it right now. Thanks for this amazing video.

  • @Sigmos
    @Sigmos 3 роки тому +216

    This man is going to ruin alexa's whole career😂

    • @vandelfs
      @vandelfs 3 роки тому +6

      what career 😂

    • @7ru7h38
      @7ru7h38 3 роки тому +5

      😂😂😂

    • @compositingwithkushal
      @compositingwithkushal 3 роки тому +2

      @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?

    • @artibahuguna2329
      @artibahuguna2329 3 роки тому

      😄😍

    • @ripdude3692
      @ripdude3692 3 роки тому

      @@compositingwithkushal well he just simply used some modules

  • @ifeogunb7137
    @ifeogunb7137 3 роки тому +282

    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.

  • @traveler8696
    @traveler8696 2 роки тому +2

    Thanks for the well executed video. Following this I have a small working version that I can play with.

  • @alanbroussard4318
    @alanbroussard4318 2 роки тому +1

    You truly are a Programming Hero. For making this tutoral fun, I will Subscribe to your channel!

  • @ZikyFranky
    @ZikyFranky 3 роки тому +5

    Messed with these packages some time ago, just love your reactions which is why I'm watching lol.
    Nice Video Man

  • @ag36015
    @ag36015 3 роки тому +12

    I just subbed, I love this kind of channels with tutorials on how to automate/build cool things!

  • @rons3634
    @rons3634 7 місяців тому +4

    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

  • @Josh-hc7ej
    @Josh-hc7ej Рік тому

    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.

  • @shinchanh4828
    @shinchanh4828 3 роки тому +277

    dont buy house, make your own

  • @priyacosta3241
    @priyacosta3241 3 роки тому +37

    Programming hero : Alexa play arianda grande
    Video: PLAYS AD
    Me : huh?

  • @exxzxxe
    @exxzxxe Рік тому +1

    Thank you for a very well done video. Love your humor!

  • @DogsterOfficial
    @DogsterOfficial 9 місяців тому

    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.

  • @AlAmin-el8yy
    @AlAmin-el8yy 3 роки тому +10

    This is the first time I notice, programing is super easy.
    I love you, dude.
    Please keep it continue.
    Good luck

  • @PictorialVibes
    @PictorialVibes 3 роки тому +12

    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).

    • @ProgrammingHero
      @ProgrammingHero  3 роки тому

      CHEK HERE, github.com/ashraf-minhaj/Audio-Book/

  • @leenamujahed
    @leenamujahed Рік тому +1

    you're the best such a good and entertaining way to explain how ai works you just earned a new subscriber

  • @nzerucreations1115
    @nzerucreations1115 8 місяців тому

    Thank you sir, I just watched one video of yours and I have fallen in love... the simplicity is beyond this world, thank you!

  • @YashwardhanBanta
    @YashwardhanBanta 3 роки тому +6

    The way you speak out the content, it's just superb! Thank you for the video!

  • @rinkujain1245
    @rinkujain1245 3 роки тому +70

    Amazon wants to know your location

  • @dieharddave
    @dieharddave 2 роки тому +8

    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.

  • @SakataSamig
    @SakataSamig Рік тому

    Learned a lot and was fun tutorial, subscribed!

  • @sangeeth77
    @sangeeth77 3 роки тому +23

    I just really love the way this guy says ‘Romantic’ 😂❤️

  • @subhadeepghosh9093
    @subhadeepghosh9093 3 роки тому +23

    Literally sir and his grandma are genius 😂😂... Thank you for such a best content

  • @Tech_Byte993
    @Tech_Byte993 Рік тому

    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

  • @projackson355
    @projackson355 5 місяців тому +1

    Imagine combining this and machine learning ai. You basically created Jarvis

  • @orbitalweapon7538
    @orbitalweapon7538 3 роки тому +124

    Why this guy always stays romantic 😂

    • @ProgrammingHero
      @ProgrammingHero  3 роки тому +30

      Cause I am!!!

    • @gadamsettybhuvanesh6191
      @gadamsettybhuvanesh6191 3 роки тому +1

      @@ProgrammingHero how can i contact u
      Im having a problem in this code

    • @walterbeckett9461
      @walterbeckett9461 3 роки тому +2

      @@ProgrammingHero ha ha ha!

    • @d3v4nsh80
      @d3v4nsh80 3 роки тому

      @@gadamsettybhuvanesh6191 discord server mate

    • @creativehub2023
      @creativehub2023 3 роки тому

      @@gadamsettybhuvanesh6191 Me too i also have error so atleast your whatsapp number?

  • @vineetrajparashar3885
    @vineetrajparashar3885 3 роки тому +17

    This is too good man 🔥🔥🔥.
    May Santa fullfil your all wishes this Christmas 🎉🎉.
    Love from India.❤️

  • @youssouphatraore4714
    @youssouphatraore4714 Рік тому

    Man! this is the first time I comment on youtube video... the 30 minutes went like 5. It is amazing the tuto.. respect!

  • @iqrafayyaz3958
    @iqrafayyaz3958 Рік тому

    New subscriber is here.... love it

  • @juanrossi3
    @juanrossi3 2 роки тому +55

    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!

  • @m1gald699
    @m1gald699 3 роки тому +12

    All I can say is wow and thank you bro, your grandma's very kind btw

  • @teckniec2
    @teckniec2 Рік тому

    This sounded interesting in the title and ended up watching the whole thing lol.

  • @studmc9976
    @studmc9976 2 роки тому

    thanks man btw nice description 😁😁😁

  • @gentworm2377
    @gentworm2377 3 роки тому +37

    Hold up, I came to UA-cam to watch a Java tutorial but I ended up watching this hilarious-genius video

    • @insanesoul518
      @insanesoul518 3 роки тому

      Same I came for pfp

    • @gentworm2377
      @gentworm2377 3 роки тому

      @@insanesoul518 php*

    • @manousakis01
      @manousakis01 3 роки тому

      @@gentworm2377 From Sql videos🤚

    • @Aecor
      @Aecor 3 роки тому

      @@insanesoul518 php = soul selling

    • @gentworm2377
      @gentworm2377 3 роки тому

      @@manousakis01 👋 hi

  • @rafy-ivanmorales3077
    @rafy-ivanmorales3077 2 роки тому +5

    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.

  • @jotela
    @jotela Рік тому

    Hey man. I liked this video. You're doing good work.

  • @ZeldaxC
    @ZeldaxC Рік тому +1

    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

  • @kravlone7612
    @kravlone7612 3 роки тому +229

    Sing programmers be like : now I m gonna make a virtual girlfriend who'll talk to me

    • @luisg277
      @luisg277 3 роки тому +10

      Yes! with the voice of Scarlett Johansson please... like the movie

    • @dharmikthej
      @dharmikthej 3 роки тому +4

      He Made a virtual gf

    • @zschibi6942
      @zschibi6942 3 роки тому +10

      Bro all programmers are single

    • @fireyeyes4675
      @fireyeyes4675 3 роки тому +1

      You got me!

    • @alimbabar662
      @alimbabar662 3 роки тому +1

      Me too

  • @prashantbhalla6842
    @prashantbhalla6842 3 роки тому +3

    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 🤟🏻

  • @prophatcheeusebio4218
    @prophatcheeusebio4218 11 місяців тому +1

    Everybody can be a master of python programmer with a teacher like you!!!!
    thank you!!!!

  • @afvcubing2524
    @afvcubing2524 2 роки тому

    man you are a legend doing this video it is really helpful thank you so much!!! 🙏

  • @YellappaM
    @YellappaM 3 роки тому +243

    The best way of explaining the usage and power of Python without boring :)

  • @kinleyrabgay6709
    @kinleyrabgay6709 3 роки тому +3

    Man that's insane!!! Esp. when you created 'talk' definition. You are legend man!!!

  • @acegameboy6232
    @acegameboy6232 Рік тому +5

    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.

    • @dadolab2314
      @dadolab2314 Рік тому +3

      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.

    • @acegameboy6232
      @acegameboy6232 Рік тому +1

      @@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.

  • @panzznine713
    @panzznine713 Рік тому +1

    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?

  • @KoushikPal
    @KoushikPal 3 роки тому +200

    Disclaimer: No Amazon is harmed during making this video.

    • @ProgrammingHero
      @ProgrammingHero  3 роки тому +9

      xD

    • @pandipatipavan3804
      @pandipatipavan3804 3 роки тому +3

      @@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.

    • @torpezaincreible8692
      @torpezaincreible8692 3 роки тому

      @@pandipatipavan3804 press start + r
      And type the location.
      Press enter

    • @talalrashid9268
      @talalrashid9268 3 роки тому

      Yes it is🤣

    • @sourabhverma376
      @sourabhverma376 3 роки тому +4

      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.

  • @omskariyazmaraikayer913
    @omskariyazmaraikayer913 3 роки тому +82

    I appreciate the energy of this young man. Also his explanation is good. One more UA-cam hero! Way to go.

    • @ProgrammingHero
      @ProgrammingHero  3 роки тому +4

      Thank you so much ❤

    • @t.e.aravindhanstudent-mca9074
      @t.e.aravindhanstudent-mca9074 3 роки тому +4

      வணக்கம் நண்பா

    • @mohammedashifm8139
      @mohammedashifm8139 3 роки тому

      @@ProgrammingHero I don't get answer

    • @zentteri3139
      @zentteri3139 2 роки тому

      @@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+

    • @thatbook3312
      @thatbook3312 2 роки тому

      @@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.

  • @aashiaanya
    @aashiaanya Рік тому

    how cute are you 🤣 ..check out his expression after he changes alexa's voice from male to female

  • @CodeWithUjval
    @CodeWithUjval 8 місяців тому +1

    Bro has fallen in love with Alexa 😂😂

  • @abhaykapoor4139
    @abhaykapoor4139 3 роки тому +10

    The reaction when UA-cam popped up first time was so amazing

  • @buzzdx
    @buzzdx 3 роки тому +143

    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.

    • @ProgrammingHero
      @ProgrammingHero  3 роки тому +21

      Thanks for the advice

    • @olivergorgiev224
      @olivergorgiev224 2 роки тому +1

      @Program Program u mean how to implement the vost api in ur project?

    • @23p50
      @23p50 2 роки тому

      @Program Program and now for other people interested you should provide a link (if theres one) so every other beginner can do it too

    • @OsoTedyfazbear3329
      @OsoTedyfazbear3329 Рік тому +1

      @@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?

    • @jugadu_gaming
      @jugadu_gaming Рік тому

      @@OsoTedyfazbear3329 😮‍💨😓🥱🤣

  • @dombomb4147
    @dombomb4147 11 місяців тому

    Wow! thank you so much! This is so fun! Thanks alot!

  • @firestorm531
    @firestorm531 Рік тому +50

    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!

    • @N-MRC
      @N-MRC Рік тому

      could you paste your code here

    • @parveenverma5912
      @parveenverma5912 Рік тому +6

      @@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()

    • @WarpedAbyss
      @WarpedAbyss Рік тому +1

      yoooo @firestorm531 same problem could u paste ur code

    • @khaledkhairy723
      @khaledkhairy723 Рік тому

      can u explain more please !!

    • @fighterluky5055
      @fighterluky5055 Рік тому +4

      @@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.

  • @GAMEOLOGIST
    @GAMEOLOGIST 3 роки тому +61

    I love this guy, his teaching style is entirely different and fun too..

    • @ProgrammingHero
      @ProgrammingHero  3 роки тому +2

      thanks man, love you more!

    • @avenger5763
      @avenger5763 3 роки тому +4

      @@ProgrammingHero can i add this project in my resume

  • @Super997turbo
    @Super997turbo 3 роки тому +3

    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.

  • @andersonpgs
    @andersonpgs 2 роки тому +5

    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

    • @bellabear653
      @bellabear653 2 роки тому

      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.

  • @azmkhanofficial6091
    @azmkhanofficial6091 Рік тому

    wow, u legitimately inspired me to think of learning python . ]
    well done.

  • @ivandimitrov2401
    @ivandimitrov2401 3 роки тому +5

    I really appreciate you, man! :) Great explanation and energy. Keep going!

  • @tiktokhottest3410
    @tiktokhottest3410 2 роки тому +7

    You're the best teacher and a little bit funny , no word can define your greatness

  • @beinganaelly7451
    @beinganaelly7451 Рік тому +1

    You make python sound super easy. Thank you

  • @efootballer1191
    @efootballer1191 Рік тому

    "Ariana Grande is crazy and you are crazy too"😂😂 nice bro...has saved me a few bucks

  • @naughtypotato
    @naughtypotato 3 роки тому +5

    This video is more informative than my 4 years of computer linguistics at uni

  • @AliKhaidhir
    @AliKhaidhir 3 роки тому +15

    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!!

    • @ProgrammingHero
      @ProgrammingHero  3 роки тому +1

      Glad to help!

    • @manishsinha7292
      @manishsinha7292 3 роки тому +1

      @@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.

  • @emilyjblunny2507
    @emilyjblunny2507 Рік тому

    i love the backround echo!

  • @jhaycourage7206
    @jhaycourage7206 2 роки тому +1

    you very funny and a good teacher .Your explanation was perfect and clear.Wsh you the best

  • @mondal9509
    @mondal9509 3 роки тому +25

    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.
    😍👏

  • @pratyushsingh4721
    @pratyushsingh4721 3 роки тому +3

    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.... ♥️♥️

  • @divine535
    @divine535 Рік тому

    cool I need more of this to program hard wares and to impress my friends

  • @USELESSFACTSDAILYDAY
    @USELESSFACTSDAILYDAY Рік тому

    Cool video imagine having Alexa voice as dark Vader 😂

  • @tojojose7910
    @tojojose7910 3 роки тому +107

    All the dislikes are by Alexa developers 😂😂😂

    • @suchitrasart2249
      @suchitrasart2249 3 роки тому +2

      Lol

    • @DarshJain
      @DarshJain 3 роки тому +6

      Dislikes are also by people who don't want romantic story in the video

    • @cutebrain
      @cutebrain 3 роки тому +2

      😂😂😂 lol

    • @pituboro
      @pituboro 3 роки тому +1

      But UA-cam recommended me

    • @tojojose7910
      @tojojose7910 3 роки тому +2

      @@pituboro because they don't know what is this video about. Bots!

  • @shirkedance
    @shirkedance 3 роки тому +38

    2020 has made many Jobless, Including Alexa.

  • @hruthik7478
    @hruthik7478 Рік тому

    Your lectures are just awesome I loved those all thank u for all your videos

  • @shamianamagembe6524
    @shamianamagembe6524 3 роки тому +6

    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

  • @PhG1961
    @PhG1961 3 роки тому +3

    Waw, this is a really cool video ! I watched it all the way till the end and I've immediately liked and subscribed !

  • @savekillqqpsounds8473
    @savekillqqpsounds8473 Рік тому

    this made me want to play a bit with my assistant that i made a while ago before i saw this video ;-; thx man

  • @skuperdei3133
    @skuperdei3133 Рік тому

    amazing video, informative, nice humour ))) romantic video, indeed

  • @indhuofficial578
    @indhuofficial578 3 роки тому +6

    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....😍

  • @thatonemotivatingdude6998
    @thatonemotivatingdude6998 3 роки тому +26

    He is about to destroy the whole career of jeff 😅 and google

  • @reen24388
    @reen24388 2 роки тому

    You are definitely one of the coolest persons I have ever seen in my life

  • @dev.daily_code
    @dev.daily_code Рік тому +1

    Thank you. You are awasome.

  • @ratulhasan7136
    @ratulhasan7136 3 роки тому +4

    The explaination is waaaay better than other similar videos

  • @mesfinbirhan6243
    @mesfinbirhan6243 2 роки тому +4

    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.

  • @user-im6uk8po4t
    @user-im6uk8po4t Рік тому

    best tutorial ever!!! thanks a lot. I really enjoyed the tutorial

  • @emmanuelisunuoya8999
    @emmanuelisunuoya8999 Рік тому

    My a new subscriber but impression with your work and creative thinking