Automating My Life with Python & ChatGPT: Coding My Own Virtual Voice Assistant | Code With Me

Поділитися
Вставка
  • Опубліковано 11 січ 2025

КОМЕНТАРІ • 363

  • @PanCave
    @PanCave Рік тому +74

    Very sympathetic, especially since it's not typically clinically clean tutorial, because you show your mistakes and a good way to deal with them. Very refreshing!

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

      THIS!! ^^^^ This is so much of coding usually and it's great to see it in raw form..

  • @jidun9478
    @jidun9478 Рік тому +51

    It is refreshing to see someone working through problems as things don't always work out the way you want.... ever! Most people just show how everything works perfectly. Thank you 😊.

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

      Thank you!!

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

      a sheet and a pencil dont work no more?

    • @TurdBoi666
      @TurdBoi666 4 місяці тому +1

      ​@@Lord_earth this ratio works tho

  • @damiananslik6214
    @damiananslik6214 Рік тому +60

    At the 6 minute mark the reason Intellisense was not able to see the installed libraries was most likely because VSC was still using the default interpreter and not the one associated with the virtual environment. To change it:
    1. Press Ctrl + Shift + P (I presume Cmd + Shift + P on MacOS).
    2. Type interpreter and click on "Python: Select Interpreter".
    3. Choose the interpreter associated with the virtual environment, usually has the environment name written somewhere beside it.
    4. Reload window, et voila.

    • @Lucky9_9
      @Lucky9_9 Рік тому +8

      This is my favorite part about tech communities. We all just want to learn and grow, and we aren’t afraid to help others with what knowledge and wisdom we’ve acquired on our own journeys. We’re all one big Oroborus of paying it forward! 😊

    • @nahfid2003
      @nahfid2003 Рік тому +2

      one thing to note here is that you go one level below your venv folder to run Cmd Shift P. Otherwise it wont show the interpreter.

    • @p.c.336
      @p.c.336 2 місяці тому

      Another related trick is switching to another interpreter and turning back to venv, if VS Code insists on not recognizing the venv, showing red lines under package names.

  • @TalmadgeMcGhoulaghy
    @TalmadgeMcGhoulaghy Рік тому +2

    I love that you share your mistakes. Using ChatGPT I had this set up in 10 minutes top. My only advice is mute the mic immediately after you speak the request. Maybe it’s my mic quality but I find it works much better if you mute. Python is so effing cool. For any mainframe guys out there it’s very similar to MVS REXX. A few subtle difference but I got it immediately. Unlike Java Script.

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

    She's is very natural, real and humorous. Learnt something big from her and I've subscribed to her channel.

  • @sportykev
    @sportykev Рік тому +19

    I like how you included troubleshooting, because running code off the Internet doesn't always work as you think it should.

  • @jean-luclacosse8057
    @jean-luclacosse8057 Рік тому +4

    I have been doing JS professionally for about a year as well and just started python last month. I literally love it. I want to make scripts to automate as much as I can. Much respect

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

      Thank you! Right?! I spent my career in JS and discovered Python after a few years and love it

  • @coldensheppard6221
    @coldensheppard6221 Рік тому +8

    This is Awesome! I just started a new course on Python on Zero to Mastery platform and currently learning about lists, this here is way over my head but with you video I was able to get it to work!!

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

    the cutest programmer, you have inspired me on learning Python

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

    This was awesome! I added Chat-GPT through the API and now I'm able to use my assistant to ask ChatGPT questions :)

  • @jamesclark2020
    @jamesclark2020 Рік тому +9

    I love how realistic this is! This gives me confidence that I could do this too!

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

    A voice recog project that even remotely works in less than 30 min. Fantastic! Very powerful example.

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

    Thank you for this video. It reminded me of the good times of how I got excited about computer science. These days it's all very stressful leetcoding all the time - all the joy has been taken out of it...

  • @goss4444
    @goss4444 Рік тому +9

    I've been working with ChatGPT for a few months, learning Python along the way. Similar to you, I have experience in automation and scripting through my past work with AutoIt. Python has proven efficient and user-friendly, especially with its threading capabilities. However, I believe there's a crucial element I'm missing when interacting with ChatGPT.
    To avoid potential API costs, I've mainly used the web interface. The computational limit in ChatGPT-4 can be an issue, as the AI language model might lose focus on the task. This makes resuming code generation challenging, prompting me to modularize my projects. Visual Studio Code offers great ChatGPT plugins, but they often depend on the API, which might cause a loss of the "personal connection" with the bot.
    My question is: how do you work with ChatGPT? Should I stop relying on it so much and only use it for specific debugging purposes? I feel like I've become somewhat reliant on ChatGPT, repeatedly asking it to create Python scripts. Although I'm excited about this technology and the opportunities it presents, I think I might not be using it optimally.

  • @teenydragons1400
    @teenydragons1400 Рік тому +2

    Just want to say thank you for making this video. I was running into problems with speech recognition. This gives me inspiration to go back to an earlier project.

  • @artechgiants
    @artechgiants Рік тому +19

    You had completed the task in a Wonderful way

  • @DrReginaldFinleySr
    @DrReginaldFinleySr 9 місяців тому +2

    Thank you for sharing. I may do the same. I created my assistant using python, ChatGPT, Google's text-to-speech API, and I love it! It can tell me my schedule, check the weather, and just have a general conversation about anything. I'm steadily adding more functionality and personalities. I even created a digital twin, which is kinda weird.

    • @afeefshaikh8149
      @afeefshaikh8149 4 місяці тому

      Could you tell me more about how you created double twin

  • @stillready6405
    @stillready6405 Рік тому +2

    I very much liked the video. Showing the process and errors which can occur is very nice to see, because you feel like you are not alone. Then there are other tutorials where it seems they get everything right the first time (which they ofc don't).

  • @norbertfeurle7905
    @norbertfeurle7905 Рік тому +11

    With python difflib and get_close_match function you don't have to perfectly spell out the command and still can get a match. Also you can let chatgpt generate some commands that have the same meaning so that when you tell the command slightly different it would detect variations of it.

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

    Very well explained and tried well honestly. Great job, Tiff!

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

    That first drink out of the tube always be warm 😂

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

    Bula Vinaka - Thanks Tiff! You are doing a very good job teaching dummies like me!!. Greetings from Fiji Islands

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

    The smile on your face discovering that you now can do 'anything' to your hearts desire, is well worth all the hard work behind it. Gratitude.

  • @michaeltse321
    @michaeltse321 Рік тому +2

    This is more a lifestyle channel than a tech channel. Never did I imagine the domain of the nerd goes mainstream - lol

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

    I didn't know you existed. Kudos for your parents, the world, and you, of course!

  • @dougrush742
    @dougrush742 Рік тому +20

    Love your examples, talk about good code documentation ❤

  • @_silentrose
    @_silentrose Рік тому +7

    Ahh this is so cool!!! Don’t you just love the feeling of being able to say you built something cool to non-tech people lol gives you a dose of confidence to do more projects - At least for me anyway since I’m still a beginner programmer 😅 Loved this tutorial btw especially how you showed step by step what you did as well as what was going wrong and what you did to fix it and why. I use VS Code too but regardless I get so excited when I’m able to understand the entire process 😊

    • @TiffInTech
      @TiffInTech  Рік тому +2

      yay!! So happy to hear. Wishing you all the best :):)

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

      @@TiffInTech Thank you Tiff!!!! ☺️🙏❤️

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

    It's nice.. easy explain is help to understand for beginner..
    It's helpful for me

  • @hamunaptraabrahan1351
    @hamunaptraabrahan1351 Рік тому +9

    The ChatGPT topic was interesting when you exposed its functionality with Python and that it favors the creation of the virtual assistant. Teaching is valuable, Tiff.🥰✌

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

    I could have easily been a tech girly, because when you started you sounded exactly like ME. I want to automate any and everything in my lifeeeee

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

    This is so cool! I've always wanted to learn how to build my own voice assistant. Can't wait to follow along and automate some tasks! 🤩

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

    This tutorial looks really interesting! Can't wait to learn how to code my own virtual voice assistant and automate my life.

  • @gomork6821
    @gomork6821 Рік тому +2

    This is exactly the content I'm looking for, thank you

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

      So happy to hear!! Let me know if you have any requests for videos etc!

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

    awesome works, i was looking something similar but with python already you have many tools, i love it too

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

    Just found your channel and subbed. Also just finished Arduino and RC cars. Python is next. Thank you for the great video.

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

    That is what exactly I'm looking for🎉❤

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

    I really like your teaching style and the honesty about the debugging process, but the title misled me a bit because it gave me the impression the video was going to be about creating a virtual voice assistant that actually harnessed the power of the GPT-3 API.
    In reality, ChatGPT factored very little into the project - it did generate code that allows the script to understand the words being said, but what is then done with that information has to be painstakingly programmed in from some hardcoded keywords, which can be useful but is also where we were many years ago.

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

    Who said you can't be gorgeous as hell and smart as hell too! Young lady, I'm an old programmer from way back in the day when a computer use to fill up an entire room and not be as powerful as today's wristwatch! In this video you reminded me of days passed when we use to care about coding and freely sharing our knowledge with others. I'm not saying that others do not do as good a job as you did here, only I have yet to run across one that is as passionate as you appear to be! In closing, you are my new programming Rock Star! Carry on!

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

    Oooh I thought this was about creating a personal assistant that utilises ChatGPT API to work. Once I realised and looked at the video in the correct context, it's a great tutorial for that level. =)

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

    Background music is fire❤‍🔥Also great content thank you

  • @a.evansrn107
    @a.evansrn107 Рік тому

    That music !!!! Makes me feel anxious ! Great information though!

  • @AhmedRaza-ty7zq
    @AhmedRaza-ty7zq Рік тому +1

    Amazing video and keep it up😊😊👍👍😊😊

  • @CobyOlson-zb7fr
    @CobyOlson-zb7fr Рік тому

    You just earned a subscriber 👊

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

    This helps alot when you need to make and specific project and some times you have a mistake, I like your videos and how you explain it, thanks

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

    Honestly Such a great video. UA-cam referring good videos today

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

      "what we should automate for our lives next" , we should automate what NPC characters say in VIDEO GAMES

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

    So cool! Can you recommend where I might start with a project to take text from a pdf and put it into an excel spreadsheet organized by certain criteria? Probably want to make for Mac OS. I’ve never coded before but want to learn about this stuff.

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

    I really managed to make my own voice assistant with python, without ever having programmed before. very interesting for the future what I will be able to do with chat gpt

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

    Loved it! You have given me some inspiration! Thank you for that. 🙂

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

    Hey great video, I would love to see a video on creating the code for turning an old radio into a personal assistant. Like being able to tell me the weather, play music, turn on lights on the radio etc
    I would be a cool way to turn a beautiful old thing into something useful

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

    I really like the audio engineering in this video.

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

    Always on top ! Keep Going honey ❤️📌

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

    Remind me to fire that voice assistant 😅 kidding. Great video, thanks!

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

    Lets Automate our lives with Tech great vid keep it up tiff

  • @sandro-nigris
    @sandro-nigris Рік тому

    Thanks Tiff, this video is great! I learnt something today 🙂

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

    you already beat alexas functionality in a prompt. amazing.

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

    Awesome video 😎 👍

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

    Nice approach exposing the true process of debugging code that never works from the onset. You're very dynamic. I like the choice of music, original and entertaining. As for speech recognition, as you demonstrate, it is rarely effective and not really a reliable automation candidate. Background noise, speech fluctuations, complexity, prononciation, etc. makes it hard to adopt in real life applications. Great content anyhow, focusing on the process rather than the outcome. Keep it up!

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

    You are an impressive young lady. Keep the content coming!

  • @Syn3rgy-DMS-HANZ
    @Syn3rgy-DMS-HANZ Рік тому

    Awesome demo. Thanks Tiff n Tech

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

    amazing video, keep up the good work

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

    5:50 I thought it only happened to me xD. Interesting topic!

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

    I would like to explain technical things so easy like you do 👏

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

    Love this. learning this

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

    5:32 the problem was that vs code was using the default python interpreter instead of using the virtual environment's interpreter. It happens frequently when setting up virtual environments and all you need to do is open the command palette using CTRL + SHIFT + P( or CMD + SHIFT +P in Mac) then type interpreter and you will find the virtual environment's interpreter that you just created

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

    Nice tiff, your explanation about any topic like chatgpt is awesome, It is cleared how to work Chatgpt as a assistant, please apload a more video about Ghatgpt and AI for your viewers. I am continuously watching videos.May God bless you!

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

    I was really trying to focus on the content but she's so beautiful had to watch twice to see the prompts lol.

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

    I added "be my guru" to the request for the assistant code.
    "be my guru" command, which uses a web search to find recent news articles related to the user's query and speak them out loud. Note that the search is limited to news articles by including the tbm=nws parameter in the URL.Thanks for lhe lessen.

  • @AH-jt6wc
    @AH-jt6wc Рік тому

    Those eyes and smile, you are gorgeous !!! You make me love Python !!

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

    This is brilliant.

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

    Totally agree with your conclusions

  • @128mtd128
    @128mtd128 Рік тому +1

    greath more like this👍

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

      Happy to hear! Let me know if any specific requests

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

    Im learning coding and engineering just so I can automate boring tasks in my life like cooking, doing the laundry and throwing garbages.

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

    oh hell yeah. You go Tiff!

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

    Lovely what you can do with chatgpt Chears. Thanks for charing.

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

    Hey where do you get your sound tracks from! They are awesome

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

    I just suscribed to ur channel your re amazing

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

    wonderful show😄

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

    This video is awesome.

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

    omg, it's a tech youtuber who's home looks like actual adults live there. I'm in shock lol

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

    The problem in Visual Studio Code not recognizing your newly installed pkgs / libraries was that the wrong interpreter was selected. This issue can be resolved by CMD + SHIFT + P. This opens the command palette. type in select interpreter: python. Then select the python interpreter with the right virtual environment and everything will work.
    Cheers Nicolas

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

    People encountering problem with pyaudio: errors like no module name setuptools can be resolved by installing 'dtutils' or rolling back python interpreter to 3.6.0 or less

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

    I am building something very similar with PHP, but way more complex. Cool i am not the only one who see promise in this tech.

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

    I use Alexa for a lot of this, but I think it’s very lacking. The problem with Alexa is, I try to have it bring up previous list of things to do, and it doesn’t allow you to pull up an old file for amending with voice. I don’t understand why they would omit such a very simple thing. I’m going to look into what you’ve done here, and try to do a variation.

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

    Great video.. really like how approachable these vids are... can I ask what software and setup you have for producing these demo style videos please?

  • @AH-jt6wc
    @AH-jt6wc Рік тому

    you are so funny when you said no one said it is perfect lol

  • @p.c.336
    @p.c.336 2 місяці тому

    5:18 you are not alone there 😁

  • @AaronLou-l7w
    @AaronLou-l7w Рік тому

    Thanks for sharing !
    Wondering how to make the voice sounds like a real person, rather than a machine. Any suggestions?

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

    ill have to have a look at the Chatgpt voice assistant code now and see if i understand it all, looks like some keywords like "with" ive never seen before.

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

      Keep me posted!!

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

      @@TiffInTech man looks like fairly simple code maybe im getting somewhere afterall these tutorials. :->

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

      @@jamesross5120 yes!! 👏👏👏

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

    I think you had to select the new Python environment after you made the virtual environment, at the right bottom of VS Code where it says Python and then the version number after it. I think that would fix the package not found error. (Or indeed restart VS Code, that works too.) Anyways great video!

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

    Not sure what I'm doing wrong, but I can't get past 4:38 in the video as it keeps telling me python is not found even though it's installed.

  • @byte_me_xd-hk5zt
    @byte_me_xd-hk5zt Рік тому

    you earned a sub from me. well done!

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

    I "learned" python 3 days ago with chatgpt.
    Apps I've already made:
    Keylogger that sends me logs and printscreens by email
    Application that counts the points in a tennis game when a player raises his arm (I'm still adjusting)
    Application that converts mp4 to wav, transcribes the audio and gives me a summary of the video (I also made one to transcribe what's app audios xD)
    Application that monitors when my favorite map is played in my online game and sends me a message on what's app letting me know
    Worm game in javascript and python
    Application that merges pdfs into a single file
    application where I speak the phrase in English and it evaluates my pronunciation
    And many other things (i would do even more with 4.0, character limitation in 3.5 is extremely annoying)
    Ps: My programming knowledge is like html stuff
    chatGPT is mankind's greatest invention and I have no doubt about it

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

    Guessing the reason the installs didn’t work at first is because the vs code python interpreter wasn’t changed to the venv version of python.
    To fix,
    cmd + shift + p
    python interpreter
    select your venv version of python

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

    You know your legit when you use IT Crowd references. Which makes me feel old, but good to see you young kids using them.

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

    Python + Automation + A extremely hot blonde = Instant subscriber thanks 😎

  • @Sopan-v8s
    @Sopan-v8s Рік тому

    Background music track "from 5:40 to 5.55" mind blowing😇😇😎

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

    I thought i was the only one who did (most of) this. Also I figured through iteration that IF you are defining specific packages co-pilot,even tabnine works better than gpt.
    I acknowhlege that most developers will figure out basic higher level systems ,Code generation via any tool has become a regular practice. However, the over all time of development remains the same, I wish a production engineer would look into this??

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

      Thank you!! Ohh that’s great to know too!

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

      Yeah, simply put if it took me 20 seconds to generate on gpt, it took me 20 hours to debug.
      Plus Norwegian market isn't really flooded with easy hires.

  • @TheMyth2.9
    @TheMyth2.9 Рік тому

    Great work Tiff, you are doing really well. Im starting out my journey into this very soon, but im sorry I cant stand python :)

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

    Really nice tutorial, i have the project to use Python + GPT-3 to make Pepper Robot a more real conversational assistant

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

    Hello, I'm Marcos salute from Brazil. Just a tip idk if in your OS this will work the same way it works for me but to solve vs code problems about package not found when you're using venv try to click on the py version in the blue(or orange) bottom bar in the right side and find the venv: version. This will use the python libraries and packages in the virtual environment not the global.