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

  Рет қаралды 15,589

Elliotcodes

Elliotcodes

Жыл бұрын

Schedule a 1-on-1: calendly.com/elliot-ayxc/60min
github.com/Infatoshi/chatgpt-...

Пікірлер: 57
@vijaybhatt729
@vijaybhatt729 Жыл бұрын
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 ай бұрын
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 Жыл бұрын
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!
@1augh0utL0UD
@1augh0utL0UD Жыл бұрын
now, how do we hook this up to a furby hahaha Thanks for sharing :)
@michaelkoltai
@michaelkoltai 7 ай бұрын
which version of Pi, you use?
@jnkmal9519
@jnkmal9519 10 ай бұрын
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 ай бұрын
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
@ahamadbembrekar2182
@ahamadbembrekar2182 5 ай бұрын
Hii Sir this project is work on raspberry Pi b model 3
@user-ie8rk4wp8r
@user-ie8rk4wp8r 13 күн бұрын
one giga ram is it will work?
@artisticyeti22
@artisticyeti22 10 ай бұрын
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!
@-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.
@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 ай бұрын
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 ай бұрын
yes change the index of the voice property
@qwerty_muffin4083
@qwerty_muffin4083 5 ай бұрын
@@elliotarledgehow do you that?
@brayanrayan4853
@brayanrayan4853 3 ай бұрын
Can i do it in Spanish?
@PatnaikUC
@PatnaikUC Жыл бұрын
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 Жыл бұрын
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
@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
@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
@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 6 ай бұрын
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 Жыл бұрын
can i have ur no
@elliotarledge
@elliotarledge Жыл бұрын
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 Жыл бұрын
ur discord id
@elliotarledge
@elliotarledge Жыл бұрын
Infatoshi Nakamoto#3233
@ANMOL_PC
@ANMOL_PC Жыл бұрын
@@elliotarledge accept request from anmol
Run your own AI (but private)
22:13
NetworkChuck
Рет қаралды 1 МЛН
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100m
00:29
Celine Dept
Рет қаралды 72 МЛН
[柴犬ASMR]曼玉Manyu&小白Bai 毛发护理Spa asmr
01:00
是曼玉不是鳗鱼
Рет қаралды 43 МЛН
Episode 37 - Underground Bunker Elevator Charge Docking System
6:30
Lex's Budget Bunker Build
Рет қаралды 69
You’re using ChatGPT wrong
9:31
Jeff Su
Рет қаралды 313 М.
How to Run a ChatGPT-like AI on Your Raspberry Pi
11:46
Gary Explains
Рет қаралды 33 М.
Building a SMART Home Assistant with ChatGPT and a Raspberry Pi
4:37
ChatGPT + Raspberry Pi -  A ChatGPT powered Raspberry Pi chatbot
6:35
Thomas the Maker
Рет қаралды 63 М.
3 HACKING gadgets you have to TRY!!
19:34
NetworkChuck
Рет қаралды 1,4 МЛН
I Ran Advanced LLMs on the Raspberry Pi 5!
14:42
Data Slayer
Рет қаралды 185 М.
Hey Jarvis | Mycroft | PiCroft Setup on Raspberry Pi
11:01
Caroline Dunn
Рет қаралды 72 М.
Maze Challenge with Sonic and Knuckles #minecraft #sonic
0:22
SonicCraft
Рет қаралды 10 МЛН
Пять минут до линейки
0:35
ЛогикЛаб
Рет қаралды 1,9 МЛН
Bananacat and Applecat Pranked Gman #gmod 😹🍌🍎
0:57
MeCoDy
Рет қаралды 20 МЛН
СОБИРАЕМ РАДУЖНУЮ ИГРУШКУ #shorts
0:41
Ал Плей
Рет қаралды 2,8 МЛН