I Built an A.I. Voice Assistant using PyTorch - part 1, Wake Word Detection

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 มิ.ย. 2024
  • This is a series where I walk through the engineering steps and challenges on how to build an Artificial intelligence voice assistant, similar to google home or Amazon Alexa, with Python and PyTorch on a Raspberry Pi. I leverage the latest machine and deep learning techniques to achieve this.
    In this video, I show how you can build a wake word detector (keyword spotting) using recurrent neural networks specifically LSTMs.
    ⭐ Play and Experiment With the Latest AI Technologies at grandline.ai ⭐
    Github:
    github.com/LearnedVector/A-Ha...
    Parts:
    raspberry pi 4 model b - www.amazon.com/gp/product/B07...
    ReSpeaker 2 mic array hat - www.amazon.com/gp/product/B07...
    portable mini speaker - www.amazon.com/gp/product/B07...
    micro sd - www.amazon.com/gp/product/B07...

ความคิดเห็น • 356

  • @ItachiUchiha-nx2sw
    @ItachiUchiha-nx2sw 4 ปีที่แล้ว +256

    First few minutes : Alright, this sounds so cool
    Middle part: Da fuq
    Last few minutes : Alright, this sounded cool

  • @robinranabhat3125
    @robinranabhat3125 3 ปีที่แล้ว +104

    While internet is full of AI guru's teaching basics with some slides and a jupyter notebook, this guy actually teaches ML with a production level code. Why are you underrated !!

    • @p._7555
      @p._7555 3 ปีที่แล้ว +2

      True.
      On the learning curve, we need basic and high level AI teaching too

  • @gamecraftczjaajenomja1057
    @gamecraftczjaajenomja1057 ปีที่แล้ว +9

    Amazing video! Finally someone not just showing some random jupyter notebook. I love how you show the real problems: not enough wake word samples, voice streaming, long training times, etc.
    Continue if possible, I would greatly appreciate it!

  • @GeometryDashEndermaster
    @GeometryDashEndermaster 4 ปีที่แล้ว +310

    You're like an alternate reality Michael Reeves

    • @soon3794
      @soon3794 3 ปีที่แล้ว +14

      Basically a less suicidal version lol

    • @dareokoski8158
      @dareokoski8158 3 ปีที่แล้ว +8

      @@soon3794 he is still yung, give him time XD

    • @TeamVexVideos
      @TeamVexVideos 3 ปีที่แล้ว

      The other Micheal isn't as good with Man's AI. He just uses like google API or existing software. And Micheal Reeves just does comedy not education.

    • @sgodsell2
      @sgodsell2 2 ปีที่แล้ว

      At 10:00 you said two words that sound similar, like MOLLY, and FOLLY, FALLEY. If you were to include those 2 or 3 words in your model data under a different category. Then they will never trigger when you say any of those words, except when you say hey wally.

    • @mohamedfasil4932
      @mohamedfasil4932 2 ปีที่แล้ว

      The weather is M####F#### hot I thought that and in deep thinking this doesn't sounds right

  • @Rottingflare
    @Rottingflare 3 ปีที่แล้ว +3

    This looks like an awesome project, can't wait to see more development!

  • @user-fj4ih3lo9f
    @user-fj4ih3lo9f 3 ปีที่แล้ว +90

    Could you make a more detailed tutorial? I couldn't find any other videos on how to make an AI Voice Assistant, i really liked the vid altough it was sometimes hard to follow. Would really enjoy a full detailed series on this :D

    • @bryanfeliciano4102
      @bryanfeliciano4102 3 ปีที่แล้ว +11

      The best way to learn is to mess with it my dude. Go into the GitHub and read the code, and start writing your own following his example but alter it to suit your tastes .

  • @mileshall5795
    @mileshall5795 11 หลายเดือนก่อน

    DUDE!!!!....You are a total BOSS!!! Thanx man. you are WAAYY better at this instructional thing than established channels/TH-camrs that (for some reason) have more subscribers, etc. Keep that stuff UP!! You are just the dude I was looking for.

  • @Elian-
    @Elian- 4 ปีที่แล้ว +2

    Great video! High qualiy, entertaining and inspiring

  • @elliotmarks06
    @elliotmarks06 ปีที่แล้ว +11

    This project looks super cool! I'm a little late to the party, but I think this would be awesome to revisit with the new AI chat tools! Especially something like GPT-Neo or the other open-source implementations.

  • @theaihacker777
    @theaihacker777  4 ปีที่แล้ว +36

    thanks for the support!

    • @leninbabu5797
      @leninbabu5797 3 ปีที่แล้ว

      Its been cool to see U
      Can we make this model using raspberry Pi zero !!

    • @maritzadelascasas2727
      @maritzadelascasas2727 3 ปีที่แล้ว

      the mot ovios wake word is wake up a.i.

  • @RichardBaileyrichoncode
    @RichardBaileyrichoncode 3 ปีที่แล้ว +6

    Looking forward to next episodes.

  • @ali-g
    @ali-g 4 ปีที่แล้ว +3

    Oh man, you are amazing! Just inspired me, thanks for the great content.

  • @fahdciwan8709
    @fahdciwan8709 4 ปีที่แล้ว +1

    Keep it coming Michael !!! Thanks a ton!!

  • @adarshvinayak
    @adarshvinayak 4 ปีที่แล้ว +5

    Your videos are amazing man. You've just earned a fan.
    By the way, I'd love to see you make the speech recognition model next.

    • @theaihacker777
      @theaihacker777  4 ปีที่แล้ว +2

      It seems that speech recognition is popular!

  • @PrashantKumar-do5fk
    @PrashantKumar-do5fk ปีที่แล้ว

    Been watcNice tutorialng your vids for a good few weeks now, learning new sNice tutorialt each day. my worksoftow has improved so much since watcNice tutorialng

  • @aayushbajaj2260
    @aayushbajaj2260 2 ปีที่แล้ว +1

    this is insane. thank you for building this.

  • @andrewsimon6058
    @andrewsimon6058 3 ปีที่แล้ว +21

    This video is exactly what I was looking for. All other voice assistant youtube guides use shitty Google services and other proprietary sources. Thank you. Looking forward for next vids on this topic.
    Also that'd be interesting if you reveal how much time have your machine spent on all that learning.

    • @theaihacker777
      @theaihacker777  3 ปีที่แล้ว +2

      Next video coming up soon! For wakeword, training was really fast. only spent like 30 minutes training.

    • @leif1075
      @leif1075 ปีที่แล้ว

      @@theaihacker777 Was this process mostly fun and enjoyable? If not how did you not give up when it got hard and not get bored and frustrated? Thanks for sharing.

  • @thom2503
    @thom2503 4 ปีที่แล้ว +1

    Great video, liking the format

  • @prakashupadhyay9529
    @prakashupadhyay9529 4 ปีที่แล้ว

    Loved your explanation and flow!

  • @cloudsystem3740
    @cloudsystem3740 ปีที่แล้ว

    honesty i never used anything like that but somehow you inspire me to start thinking how i can learn that stuff very nice video and source code thanks

  • @developerpranav
    @developerpranav ปีที่แล้ว

    This is super cool! You explained it very well, really appreciate it! :D Thanks!

  • @anshpatel8083
    @anshpatel8083 3 ปีที่แล้ว +2

    “ Apple’s okay. “
    Im subscribing this channel

  • @etienneekpo348
    @etienneekpo348 4 ปีที่แล้ว +1

    Cool Mike. Thanks for sharing !

  • @fteoOpty64
    @fteoOpty64 3 ปีที่แล้ว

    Ultra Cool Dude!. Fantastic instruction process and very concise. Very Good. 101% grading!.

  • @johnhandley1870
    @johnhandley1870 4 ปีที่แล้ว +56

    I’m watching this video on my iPad and when you said “Hey Siri”, Siri woke up...
    By the way, I’d be really interesting in seeing a video in which you explain how to set up a computer to carry out Machine Learning tasks. :)

  • @kellbooby265
    @kellbooby265 3 ปีที่แล้ว +1

    Love u bro
    I had didn't find this information even in google....thanks a lot..

  • @user-vj9hb3gy6d
    @user-vj9hb3gy6d 3 ปีที่แล้ว +1

    I wonder why your channel is still not famous. 🤔You deserve millions of subscribers!!!

  • @leisana4097
    @leisana4097 3 ปีที่แล้ว +4

    Extremely extremely intelligent AI. You asked what next to try - Can you try - Self driving car with Raspberry Pi and Pytorch. A small rover

  • @seesah
    @seesah 4 ปีที่แล้ว +3

    this is so amazing!

  • @xYASMINNN
    @xYASMINNN 3 ปีที่แล้ว +1

    Love this! 🤍

  • @r7rahuls
    @r7rahuls 3 ปีที่แล้ว

    Finally.....I got what I was looking for.
    ❤️

  • @antoniomeraz520
    @antoniomeraz520 3 ปีที่แล้ว

    Dude you´re awesome!!! make more of this

  • @rangefreewords
    @rangefreewords 2 ปีที่แล้ว +44

    Awesome! I was looking for a totally offline LAN based smart A.I. like what you just presented
    Objective: To control everything on my sailboat, take helm, drop anchor, play music or movies from my pi based server and work alongside my autopilot systems and chart plotter. I know often during my voyages I won't be accessing any internet but, I want to have all the same ubiquitous control as a smart home, etc. I am trying to source as much as I can from TH-cam to build a decent system.
    Keep up the awesome work!

    • @subhajitkundu7546
      @subhajitkundu7546 2 ปีที่แล้ว +5

      Hey, good day mate,
      The project that you talked about sounds awesome. I am just checking in to know how the project is coming along and where are you headed with this project currently.

    • @danielogunlolu
      @danielogunlolu ปีที่แล้ว

      I am working on something similar on channel. Kindly check it out

    • @mathewpatterson2187
      @mathewpatterson2187 ปีที่แล้ว

      Ahoy there! I'm also checking in, how's it going with the project sounds awesome and very reminiscent of what I want to do! Have you had much success?

    • @daanzap
      @daanzap 11 หลายเดือนก่อน +1

      I have the exact same idea! It's going to feel a bit like being on the enterprise.

  • @egs-zs8-127
    @egs-zs8-127 3 ปีที่แล้ว +1

    Great video! Thank you so much!

  • @mingtang9823
    @mingtang9823 3 ปีที่แล้ว

    This is very helpful! Thanks a lot. I subscribed!

  • @PritishMishra
    @PritishMishra 3 ปีที่แล้ว +1

    You are a genius.. Subscribed !!

  • @getalife6654
    @getalife6654 3 ปีที่แล้ว

    I really like your content and wanted to try this myself :)

  • @manuelherrerahipnotista8586
    @manuelherrerahipnotista8586 2 ปีที่แล้ว

    Very clear explanation. Thanks a lot

  • @ramoncaceres4399
    @ramoncaceres4399 3 ปีที่แล้ว +9

    Pretty interesting. For about 2 years I’ve been obsessed with turning my house into an AI assistant. Yet have the voice Overlay of ( BT from titanfall ). Yet pretty hard to do that.

  • @400DaysUnicorn
    @400DaysUnicorn 3 ปีที่แล้ว

    Couldn't find part 2 and so on. Would love to do this project for myself. Thank you!

  • @mauricioandrestiznadoroman3460
    @mauricioandrestiznadoroman3460 ปีที่แล้ว

    production. Thanks again!

  • @justsomeguywithtattoos6267
    @justsomeguywithtattoos6267 3 ปีที่แล้ว +11

    This could be easily applied for translations, so that you can have an earplugs that instantly translates what someone is saying to you

  • @amitg2k
    @amitg2k 2 ปีที่แล้ว

    Awesome...way to go

  • @romicasimiaisialtele366
    @romicasimiaisialtele366 ปีที่แล้ว

    Thank you Mike! I'm just starting out and tNice tutorials video really helped get the basics down!

  • @DrSmart20
    @DrSmart20 ปีที่แล้ว

    haha i looked the idea up like a year ago thinking it would be cool and everything i found was just "attatch spare phone to a speaker" lol this just showing up in my feed now is so exciting

  • @DJWangDJ
    @DJWangDJ ปีที่แล้ว

    dude, you are awesome!

  • @RomansapienMVision
    @RomansapienMVision 2 ปีที่แล้ว

    Thanks for sharing. I was looking for a video that would get my head spinning then eventually put me to sleep.

  • @NathanaelNewton
    @NathanaelNewton ปีที่แล้ว

    "Ok, Now that we got the code.."
    Wow.. that was so information dense.. SUBBED AND BELL WOW.. I'm going to learn a lot here I think :)

  • @janardannn
    @janardannn 4 ปีที่แล้ว +1

    Amazing dude :O

  • @mcudgir1291
    @mcudgir1291 ปีที่แล้ว

    This helped a lot thank you

  • @HappiFix
    @HappiFix 3 ปีที่แล้ว

    daaaaayum good stuff homie g gangsta

  • @applabstudio3155
    @applabstudio3155 3 ปีที่แล้ว

    Thank you very much❤️❤️❤️❤️please continue

  • @akashdhage
    @akashdhage 3 ปีที่แล้ว

    Great learning thanks a lot.
    I have gone through the video completely,if the audio signal is split with a equal diffrence for eg:2 sec then it may result in loss of information as a the split may occur at the middle of word

  • @scollyb
    @scollyb 3 ปีที่แล้ว

    Great video. Have you tried the simple solution of adding examples of you saying the close phrases to the training set. Simplest way would be just to add many copies of them to the set and retrain. Possible more robust way would be to add a second stage to the process trained on only your voice.

  • @tuananhlam90
    @tuananhlam90 4 ปีที่แล้ว

    Hey great tutorial! Looking forward to your written guide! But question/request for you: if I don't have access to expensive deep learning hardware setup like you have here, can you do another separate tutorial series on how to build/train model on say AWS/GCP?

    • @theaihacker777
      @theaihacker777  4 ปีที่แล้ว +1

      Totally can consider that. But I think there are quite a few tutorials like that out there. Also i would recommend using google colab since it’s free and good enough for small projects

  • @mitchellstewart6745
    @mitchellstewart6745 8 หลายเดือนก่อน

    It’s a shame you didn’t keep this repo up I just got a raspberry pi and this is my intentions but I don’t know enough about ML or engineering to pull it off 😅 thanks for the content!

  • @hs4lhp828
    @hs4lhp828 3 ปีที่แล้ว +1

    Interesting video. Looks like fun. You're smart af.
    In other news, I've always suspected that I'm dumb af. This is now confirmed.

  • @sreeram9220
    @sreeram9220 2 ปีที่แล้ว +1

    I'm not gonna lie when I hear your one minute speech I find some hope

  • @alexzab7653
    @alexzab7653 3 ปีที่แล้ว +1

    It's amazing!!!

  • @bradc6056
    @bradc6056 3 ปีที่แล้ว +1

    I haven’t seen the rest yet, but have you thought of creating a blacklist of all the words that sounds like Wally, and that should increase overall accuracy.

  • @vanmanhle5642
    @vanmanhle5642 3 ปีที่แล้ว

    That's really great

  • @benniegant
    @benniegant 3 ปีที่แล้ว

    Wow, My AI Assistant is working now Thanks!!!

    • @lionellow105
      @lionellow105 ปีที่แล้ว

      Hey sorry for bothering but would it be okay if I ask you some questions on how you got it to work? Especially the raspberry Pi part

  • @myrthestruver5262
    @myrthestruver5262 ปีที่แล้ว

    you have no idea how proud I am I even understood half of this haha

  • @dillonridder8737
    @dillonridder8737 4 ปีที่แล้ว +60

    "Apple's okay" lol

    • @schwarzarbyter
      @schwarzarbyter 3 ปีที่แล้ว

      thats exactly when this video got its 72nd dislike.

  • @ShivamVerma-gq2sm
    @ShivamVerma-gq2sm 4 ปีที่แล้ว +1

    Why not go in the sequence you already told?
    Incredible video ! I read a blog of yours on medium about LSTM, quite good explaination. Thanks man for such an awesome stuff .

    • @theaihacker777
      @theaihacker777  4 ปีที่แล้ว +1

      Always a logical choice! but just wanted to know what the viewers are most interested in seeing next

  • @CleffnaTV
    @CleffnaTV ปีที่แล้ว

    Amazing!!!

  • @harjunmnath
    @harjunmnath 2 ปีที่แล้ว +1

    common man, give us the next video of this series we have been waiting too long

  • @lukewhatley8043
    @lukewhatley8043 3 ปีที่แล้ว +3

    Awesome video! Do you know if the dataset you decide to train it on has to be in .wav format? So close to getting your example working! Let me know if theres somewhere I can ask some questions regarding your code. Again great video man!

    • @theaihacker777
      @theaihacker777  3 ปีที่แล้ว +2

      Hey Luke! If you have discord, join the discord server and I can help you there. The link is in the description.

  • @lalitbhargava3993
    @lalitbhargava3993 3 ปีที่แล้ว

    Very informative

  • @wmacosx
    @wmacosx 3 ปีที่แล้ว +1

    Hi, thanks for the great video, can you tell me how much power/cpu this wake-word implementation consumes? I've always wanted to build something like that but I'm worried about the PI having to constantly process audio to catch that wake-word that I would use 2 or 3 times a day. I was thinking that maybe for the wake-word part, some specialized hardware would be preferable, so that the PI will be under load only for a short period of time after each wake-word activation.

  • @marwinsteiner5817
    @marwinsteiner5817 3 ปีที่แล้ว

    Hey you, I have the same computer case like you! Interesting video!

  • @UmbraAtrox_
    @UmbraAtrox_ 2 ปีที่แล้ว

    THANK YOU!

  • @halimaujunwa9533
    @halimaujunwa9533 3 ปีที่แล้ว

    Oh yhhh......I got lost in that mathematical modelling part tho but still cool.....really cool

  • @dheerajrishimusic
    @dheerajrishimusic 3 ปีที่แล้ว

    this is very nice

  • @saltofearth4902
    @saltofearth4902 3 ปีที่แล้ว +1

    Omgurd your awesome.. First five min freaking had me laughing hard!

  • @mbp5863
    @mbp5863 2 ปีที่แล้ว

    You make some pretty damn good content!:) When is the next video coming?

  • @TheAcujlGamer
    @TheAcujlGamer 3 ปีที่แล้ว

    Did I just found a small creator that makes great & fun pyTorch content?

  • @GalacticTechTrails
    @GalacticTechTrails 2 ปีที่แล้ว

    random shit!!
    Love it. Your the man!

  • @PiyushSharma-od2el
    @PiyushSharma-od2el 3 ปีที่แล้ว

    Nice making Terminator A.i

  • @benni5541
    @benni5541 2 ปีที่แล้ว

    Im Currentlx using rasphy. Although its pretty neat and does EVERYTHING, it does not leave much room for the very tech savy users. I guess i will tinker a bit with your code and incorperate parts. But i need to replicate my current satellite nodes with printed pcb first. So much todo :D

  • @wearesisterstube7354
    @wearesisterstube7354 3 ปีที่แล้ว

    Good job

  • @rupertbowen-jones858
    @rupertbowen-jones858 3 ปีที่แล้ว

    Have you considered the NVIDIA Jetson Nano or the Jetson Xavier NX? Could be a better and more powerful solution than a humble pi? Looking forward to working through this project though... great videos and git. Happy New Year!

  • @szczurekk1155
    @szczurekk1155 ปีที่แล้ว

    I also really like softEX, it has a very nice effect to it

  • @RichardBaileyrichoncode
    @RichardBaileyrichoncode 3 ปีที่แล้ว

    Fun project.

  • @johnsnow5510
    @johnsnow5510 2 ปีที่แล้ว

    Very nice ideea! It may be a dumb question, but here it goes: can the recorded voice be in other language than english, and by using the same principle get similar results? I'd like to create an assistant that recognizes speech input in real-time and returns information like weather, youtube videos etc.

  • @VonchkynProduction
    @VonchkynProduction 3 ปีที่แล้ว

    Do you have more projects coming up? it'd be cool to see some more projects or tutorials

  • @sunilshewale913
    @sunilshewale913 3 ปีที่แล้ว

    awesome

  • @onlyyou200548
    @onlyyou200548 2 ปีที่แล้ว

    good job.

  • @provakar5496
    @provakar5496 3 ปีที่แล้ว

    Thanks a lot, I just made google assistant!

    • @lionellow105
      @lionellow105 ปีที่แล้ว

      Hey, what wakeword did you use

  • @ObitoUchiha-be1jo
    @ObitoUchiha-be1jo 3 ปีที่แล้ว

    I was thinking of building too using raspberry xD. I'm surprised u didn't include cortana

  • @microgamawave
    @microgamawave 2 ปีที่แล้ว +1

    You can make a video about gait recognition biometrics in python
    recognized you from your walk model ????

  • @blandcoffeeamv4107
    @blandcoffeeamv4107 3 ปีที่แล้ว +2

    I am currently building a bot for my thesis and want to test out everything´s working. i don´t have the parts at home and it´s kinda late to order the parts. i should be able to test it on my laptop too, right?

  • @randallnorwood6803
    @randallnorwood6803 ปีที่แล้ว

    Well I must say that I'm very interested

  • @alicomando1195
    @alicomando1195 ปีที่แล้ว

    Those codes make me breath deeper

  • @badcamerax
    @badcamerax 3 ปีที่แล้ว

    this guy is genious

  • @karanrathod8555
    @karanrathod8555 3 ปีที่แล้ว

    sir please complete full course of this AI soon...

  • @MrBobWareham
    @MrBobWareham 3 ปีที่แล้ว

    How did you learn so much and know what to type? It just looks so complicated you are awsome

  • @shivanshsharma5112
    @shivanshsharma5112 3 ปีที่แล้ว

    Nice bro, also Which voice in assistant didi you use?? or you just created your own??

  • @andressastre6298
    @andressastre6298 4 ปีที่แล้ว

    do the NLU next!!

  • @tiagopaim3060
    @tiagopaim3060 3 ปีที่แล้ว

    Bruh. Get instantly subscribed