No video

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

  Рет қаралды 18,598

Elliotcodes

Elliotcodes

Күн бұрын

Пікірлер: 62
@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 Жыл бұрын
Good job bro
@SodaSenpai1337
@SodaSenpai1337 Ай бұрын
Awesome project! Would it be possible to have GPT-4o do the speech processing and have another service provide a custom voice for output? New to the ML and AI world, but have been inspired by the GPTars page on reddit and instagram and am considering taking a crack at it if that gives you an idea of what I'm after.
@elliotarledge
@elliotarledge Ай бұрын
yeah that sounds ideal. i might end up making another raspberry pi video just based on this. thanks
@SodaSenpai1337
@SodaSenpai1337 Ай бұрын
@@elliotarledge No thank you! I just wanted to know if it was possible but if you're going to tackle it I will subscribe and wait eagerly for it. :)
@ahamadbembrekar2182
@ahamadbembrekar2182 7 ай бұрын
Hii Sir this project is work on raspberry Pi b model 3
@1augh0utL0UD
@1augh0utL0UD Жыл бұрын
now, how do we hook this up to a furby hahaha Thanks for sharing :)
@Tiberius-84
@Tiberius-84 Жыл бұрын
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!
@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
@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
@artisticyeti22
@artisticyeti22 Жыл бұрын
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 Жыл бұрын
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!
@garde1257
@garde1257 2 ай бұрын
Hello there, I have scrolled through the comments and haven't seen if anyone has asked: Will this work for RasPi Zero 2W? Thank you for anyones answer
@-someone-.
@-someone-. Жыл бұрын
Subbed! 👊 Is it possible to have it running offline? I don’t mind downloading the 570gb library
@elliotarledge
@elliotarledge Жыл бұрын
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.
@michaelkoltai
@michaelkoltai 10 ай бұрын
which version of Pi, you use?
@user-ie8rk4wp8r
@user-ie8rk4wp8r 3 ай бұрын
one giga ram is it will work?
@cristiano-k8s
@cristiano-k8s 7 ай бұрын
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 7 ай бұрын
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
@cristiano-k8s
@cristiano-k8s 7 ай бұрын
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??
@brayanrayan4853
@brayanrayan4853 6 ай бұрын
Can i do it in Spanish?
@rocketman143
@rocketman143 6 ай бұрын
He looks like a Brandon
@marti4679
@marti4679 Жыл бұрын
hey i have a question. is it possible to change the voice?
@elliotarledge
@elliotarledge Жыл бұрын
yes change the index of the voice property
@qwerty_muffin4083
@qwerty_muffin4083 7 ай бұрын
@@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
@jnkmal9519
@jnkmal9519 Жыл бұрын
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 Жыл бұрын
this is chatGPT but purely voice for the utility. enlighten me on the conv speech project you are referring to!
@ahamadbembrekar2182
@ahamadbembrekar2182 7 ай бұрын
Hii this project is work on raspberry Pi b model 3
@user-ny9xv2gf1h
@user-ny9xv2gf1h 9 ай бұрын
Do you think it would be possible to make this speak in Spanish?
@elliotarledge
@elliotarledge 9 ай бұрын
Yes just look up different voices. Shouldn't be easy since the OS has a bunch by default
@farahkhalil6846
@farahkhalil6846 Жыл бұрын
From we're can I git a API
@farahkhalil6846
@farahkhalil6846 Жыл бұрын
Plz answer me
@elliotarledge
@elliotarledge Жыл бұрын
@@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 Жыл бұрын
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 Жыл бұрын
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
@davidgibson4648
@davidgibson4648 5 ай бұрын
"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 5 ай бұрын
you're right. this is why I started working on a new one. appreciate the honesty :)
@sergiorome48
@sergiorome48 Жыл бұрын
I hate the voice, I’d like to make it better
@ANMOL_PC
@ANMOL_PC Жыл бұрын
ur discord id
@elliotarledge
@elliotarledge Жыл бұрын
Infatoshi Nakamoto#3233
@ANMOL_PC
@ANMOL_PC Жыл бұрын
@@elliotarledge accept request from anmol
Мы сделали гигантские сухарики!  #большаяеда
00:44
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 8 МЛН
Private AI Chatbot on Your Computer - Step by Step Tutorial
14:33
Skill Leap AI
Рет қаралды 25 М.
Make an Offline GPT Voice Assistant in Python
24:29
JakeEh
Рет қаралды 11 М.
Malware development 101: Creating your first ever MALWARE
28:00
Leet Cipher
Рет қаралды 316 М.
Raspberry Pi AI: Picroft Voice Assistant
21:34
ExplainingComputers
Рет қаралды 163 М.
ChatGPT + Raspberry Pi -  A ChatGPT powered Raspberry Pi chatbot
6:35
Thomas the Maker
Рет қаралды 75 М.
Can I Run Youtube Entirely From My Terminal? (No Browser)
15:31
How I Coded An Entire Website Using ChatGPT
18:22
Nick White
Рет қаралды 1,9 МЛН
Google Just Turned the RPi into a Supercomputer...
5:42
Data Slayer
Рет қаралды 551 М.