Building a ChatGPT Voice Assistant on Raspberry Pi from Scratch (Step-By-Step)

Поділитися
Вставка
  • Опубліковано 15 кві 2023
  • Schedule a 1-on-1: calendly.com/elliot-ayxc/60min
    github.com/Infatoshi/chatgpt-...
  • Ігри

КОМЕНТАРІ • 57

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

    awesome broo ❤️ everything was super simple and easy to do except that api key stuff

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

    Good stuff, Just subscribed, keep it up man

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

    Good job bro

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

    New sub.. nice my dude.

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

    Hi! Looks awesome! I’m new to this so I don’t know much about raspeberry pies so which one did you use?

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

      I have an older version from 5 years ago or so. To run scripts that aren't computationally heavy, I'd recommend the Raspberry Pi 2.

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

      @@elliotarledge thank you!

  • @ahamadbembrekar2182
    @ahamadbembrekar2182 5 місяців тому +2

    Hii Sir this project is work on raspberry Pi b model 3

  • @jnkmal9519
    @jnkmal9519 11 місяців тому +4

    Thanks! How does this compare to the Conversational Speaker project? It seems that this method doesn't require one to pay for Azure Cognitive Speech Services, which is great.

    • @elliotarledge
      @elliotarledge  11 місяців тому +2

      this is chatGPT but purely voice for the utility. enlighten me on the conv speech project you are referring to!

    • @ahamadbembrekar2182
      @ahamadbembrekar2182 5 місяців тому

      Hii this project is work on raspberry Pi b model 3

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

    now, how do we hook this up to a furby hahaha
    Thanks for sharing :)

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

    which version of Pi, you use?

  • @-someone-.
    @-someone-. 11 місяців тому

    Subbed! 👊
    Is it possible to have it running offline? I don’t mind downloading the 570gb library

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

      That would be a completely different project. If you're interested in pretraining a model from scratch please reach out to me through my discord (its in the github). I can show you how to scrape 570gb of text similar to what openai uses for their text corpora. Wouldn't use openai API and also not viable on a raspberry pi due to the insane computational resources required.

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

    Can I do this on a pi pico ? With external SD card if necessary? And insert it into a robot humanoid I have made? Pls reply the possibility

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

      im not too familiar with the pico, thats something you could research. if you have speakers and a decent microphone there is a decent chance it would work with your humanoid project. thanks for commenting!

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

    Superb! Thanks for this standalone personal assistant that requires no PC / Laptop once everything is loaded to Raspberry Pi. Few questions--1) Can Raspberry Pi 3 be used as availability of RP4 is very bad. 2) Can you please add a camera to recognise each face and greet the person by his / her name accordingly instead of a common name like "Elliot" which is applicable to the user only?

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

      Thanks! To answer your questions, any raspberry pi should work. You may receive slightly different errors but likely the same ones. Haven't tested on every model so not 100% sure. You could implement your own computer vision algo that would recognize your face. That becomes a bigger problem because raspberry pi's aren't powerful and would either lag or crash when given difficult tasks like computer vision scripts. You could try to implement this on a desktop PC or a laptop since they can better handle it. In terms of the name, you can actually change the name variable inside the python script (located in the github repo in the video description). I might consider trying out the face recognition though. Good idea!

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

      @@elliotarledge Thank you so much

  • @user-ie8rk4wp8r
    @user-ie8rk4wp8r 26 днів тому

    one giga ram is it will work?

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

    Bro i got a school project can you make it like when we star the Rasspberry pi it that voice assistant start working

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

      That is possible. What you would look into is making the script run on boot, so that you don't have to cd into the directory. Haven't looked into that on raspiberry pi yet. Try searching for "run python script on boot raspberry pi"

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

      Can I have ur watsapp noi want to talk to u??

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

    Yo bro....Should I connect it to my PC to operate it ?...
    Can't I upload the code and connect it to the battery for powersupply and do the stuffs...

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

      You should be able to ssh into the pi assuming the ssh service is setup. It's well documented you can likely figure it out in your own from here. Ssh let's you control the pi from a remote device

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

      Well, I'm thinking to make a talking robot, and use raspberry pi to access chatgpt and gives the output...But I'm unclear about these stuffs...Tell me how can I connect with you on Social Midea?@@elliotarledge

  • @brayanrayan4853
    @brayanrayan4853 3 місяці тому

    Can i do it in Spanish?

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

    Thanks again. After a lot of wrong entries made by me by mistake and then watching your video multiple times I could complete the project successfully. The only problem is that the audio output is too robotic. Hope you shall update the project soon. Finally, I got one error that asked to install flac. After doing that everything worked ok.

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

      Great job! This project isn't perfectly optimized for everyone yet. I also run this on a raspberry pi I got many years back so there are a few things mine has/doesn't have compared to more recent ones. As for the voice, those were the only devices that came with the OS. If you really wanna upgrade the quality, consider downloading new voices and setting them up properly in the registry.

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

      Thanks. There was another small error in the code. "hey pos" should be single quotation mark. Ie 'hey pos' in text.lower():

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

      I am using Raspberry Pi 4 B, 8GB with a 256 GB micro SD card. I think if I load OS Windows 10 then I can opt for better audio like Davinci

  • @marti4679
    @marti4679 10 місяців тому

    hey i have a question. is it possible to change the voice?

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

      yes change the index of the voice property

    • @qwerty_muffin4083
      @qwerty_muffin4083 5 місяців тому

      @@elliotarledgehow do you that?

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

    Hi when I start the code I get the error " line 18, in voice = engine.getProperty('voices')[1] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ IndexError: list index out of range" could you maybe help me? I'm a little stuck atm :(

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

      change the index [1] to [12]. if that doesn't work try [17] instead. a few other people had this problem too. i setup my raspi OS a few years back so probably forgot something I changed back then. thanks for reaching out!

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

      @@elliotarledge mhh it still gives me the error :( do you know any other ways to fix or trouble shoot this? (+ Thank you for responding!)

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

      @@vincentgroen4707 add this line under the one you are getting errors `print(engine.getProperty('voices'))`. you will get a ton of voices printed out in the form of an array. If you arent familiar with those, you should either reach out directly to me on discord, or learn how arrays work then choose the right index according to your preferred language. Try [0] instead of [1]

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

      @@elliotarledge Thank you! The code is working now :D

  • @farahkhalil6846
    @farahkhalil6846 10 місяців тому

    From we're can I git a API

    • @farahkhalil6846
      @farahkhalil6846 10 місяців тому

      Plz answer me

    • @elliotarledge
      @elliotarledge  10 місяців тому

      @@farahkhalil6846 Hey! After creating an account on the openai website you can figure out API stuff in your settings on the openai website.

  • @michelthibault1766
    @michelthibault1766 10 місяців тому

    Super your video but ,, :-) At this step i have this error ==> arecord -f cd -D hw:1 | aplay error --> pi@rpiChapGPT:~ $ arecord -f cd -D hw:1 | aplay
    arecord: main:830: audio open error: Device or resource busy
    aplay: read_header:2839: read error

    • @elliotarledge
      @elliotarledge  10 місяців тому

      Just asked gpt-4 the answer, you should do the same. Would be inefficient for me to send instructions. Thats also part of being a programmer :D

  • @user-ny9xv2gf1h
    @user-ny9xv2gf1h 7 місяців тому

    Do you think it would be possible to make this speak in Spanish?

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

      Yes just look up different voices. Shouldn't be easy since the OS has a bunch by default

  • @rocketman143
    @rocketman143 3 місяці тому

    He looks like a Brandon

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

    can i have ur no

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

      I don't publicly give out my phone number but you can add me on discord.

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

      @@elliotarledge okk ur id

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

    I hate the voice, I’d like to make it better

  • @davidgibson4648
    @davidgibson4648 3 місяці тому

    "Step by Step" would include explaining your development environment. What is this screen you're showing us, Is it a terminal, a command shell, a jupyter note book??? I believe you're video is getting lost in the ocean of others ramblings because it is not "step by step" similarly to the other 100,00 videos that make zero sense to newcomers and they stop watching after the first cpl of minutes,. Just because you know what your doing doesn't mean others do lol.

    • @elliotarledge
      @elliotarledge  3 місяці тому

      you're right. this is why I started working on a new one. appreciate the honesty :)

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

    ur discord id

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

      Infatoshi Nakamoto#3233

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

      @@elliotarledge accept request from anmol