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

Поделиться
HTML-код
  • Опубликовано: 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.

  • @1augh0utL0UD
    @1augh0utL0UD Год назад +1

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

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

  • @jnkmal9519
    @jnkmal9519 10 месяцев назад +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  10 месяцев назад +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

  • @michaelkoltai
    @michaelkoltai 8 месяцев назад

    which version of Pi, you use?

  • @artisticyeti22
    @artisticyeti22 10 месяцев назад +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  10 месяцев назад

      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!

  • @ahamadbembrekar2182
    @ahamadbembrekar2182 5 месяцев назад +2

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

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

  • @user-ie8rk4wp8r
    @user-ie8rk4wp8r 19 дней назад

    one giga ram is it will work?

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

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

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

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

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

  • @brayanrayan4853
    @brayanrayan4853 3 месяца назад

    Can i do it in Spanish?

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

  • @rocketman143
    @rocketman143 3 месяца назад

    He looks like a Brandon

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

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

  • @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 2 месяца назад

    "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  2 месяца назад

      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