I tried to install all the libraries. Only with PyAudio did this go wrong. Eventually, I got it to work. By the following commands: sudo apt install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 After that sudo apt install ffmpeg and than run python3 -m pip install pyaudio Everything works great
@thomasthemaker3 ай бұрын
Great! Thanks for sharing. I will 📌 this to help others
@theredditemperor88063 ай бұрын
helped me a lot, thanks!
@CarlosHernandez-yt5so2 ай бұрын
God Bless You. Thank you for taking time out of your day to comment this, you have been so helpful
@Skibidi292oo26 күн бұрын
Thanks this worked well i can now use chatgpt as a voice command to turn on the laser
@thomasthemaker10 күн бұрын
Ohhh noaicee. Did it work? I wanna seee
@alexpapou48063 ай бұрын
Just came across, a totally amazing project. Perhaps the ultimate stage of this would be a bot that activates only on a certain voice command so what you chat in a room does not get sent to gpt unless you ask for this, and a real non-robotic voice of your choice. I am impressed, thank you!
@lzcell97277 ай бұрын
The first time I saw this video, I was intrigued, but now ChatGPT has its own speech conversation function.
@thomasthemaker7 ай бұрын
It surely does
@mq-r3apz2916 ай бұрын
How to get chatgbt to control actual motors PLEAAAASEE😢@@thomasthemaker
@JohnDoe-og9kz Жыл бұрын
Amazing work dude. Also congrats on accomplishing 100 subs. Have a great day! - your 100th subscriber
@thomasthemaker Жыл бұрын
Hey John, I appreciate that! Have yrself a good weekend!
@WINTERMUTE_AI Жыл бұрын
GENIUS! This is exactly what I was looking for, thanks!
@unkillablespirits85824 ай бұрын
you should just use llama2 or 3 , or any of the Local Language models , stop supporting the system they are watching us , its literally 1 command in linux to install llama2 or 3
@charlesmarchand9098 Жыл бұрын
ill start my project with yours as guidance to make my own, awesome and simple. Thank you!
@betrayedsoul477 ай бұрын
Thx this is so cool your 1000th subscriber
@thomasthemaker7 ай бұрын
Much appreciated 👍!
@jtr12272 ай бұрын
Great ChatGPT chatbot! Awesome! Hi Thomas I have a Raspberry PI 5, a ollama with tinyollama setup on my system with an ollama webui as frontend. It works and the responses are good enough as far as speed is concerned. I already installed piper and the voice sounds natural and perhaps add whisper next for an all out local project. Do you know a way on how I can this all integrated together. I'll be looking forward to your next video.🌟🌟👍
@mercy1441 Жыл бұрын
I have been thinking of this for a few days now ! Thanks Thomas !!
@thomasthemaker Жыл бұрын
Glad to help! If you think of any more ideas let me know
@user-pi1lq3pj Жыл бұрын
thank you it very interesting to see somone of your age do a project like this
@elvenkim10 ай бұрын
most interesting project! didn't know raspberry pi can run chatgpt
@davyponte10 ай бұрын
That’s amazing! Bravo👏🏻 congrats… but is possible change the chatbot voice? For example my voice?
@Kataroobungaloo7 ай бұрын
Wow incredible work here!! Very inspiring!!!
@markboweringphotography4408 Жыл бұрын
Superb project. Just what i was looking for.
@colemanandersen2 ай бұрын
This is an awesome video, thank you!!
@thomasthemakerАй бұрын
Glad you liked it! 😀
@jasonmcnabb32184 ай бұрын
The libraries will not load
@georgekot6377 Жыл бұрын
Looking forward to your next video
@nhunglehong3117 Жыл бұрын
Nice!!!! It is an interesting project. Thank you very much ❤
@TheCryptoCollective6911 ай бұрын
When I copy and paste the libraries/dependencies code I get a externally-managed-environment error then I go into a virtual environment then do it again it works but then I get more errors stating that it can't find dotenv idk what I'm doing wrong but I followed this video to a T and nothing's working
@aishaashraf43756 ай бұрын
Have you found a solution
@carlhartman281815 күн бұрын
I agree. Nothing but problems when installing the libraries. I wonder if anyone has successfully got this to work? Wasted hours of time trying to get this setup with my grandson.
@richardshalla5 ай бұрын
That was very interesting. I have a raspberry pi 3 I think I may try this.
@thomasthemaker5 ай бұрын
Glad I could help!
@drewski68433 ай бұрын
Wow, thanks for this video man. I was windering, once installed, how can you install this on a rc car? Have the system roam around with comouter vision, lidar, and other systems for obstacle avoidance, roaming around my property? Thanks again for this informative video.
@thomasthemakerАй бұрын
That's actually a cool idea. Watch out for a video on that!
@drewski6843Ай бұрын
@thomasthemaker lol dude, if you're gonna do that, go into detail on how to, coding, or share the code so I can build and install your code. Roaming bots! Lol pretty cool to have.
@user-lc3yp3pj6j6 ай бұрын
Bro nice project thanks for support !!
@3dStudioPrinting5 ай бұрын
Is it possible to make it sound less robotic like ?
@mikew28837 ай бұрын
Awesome tutorial! 👍
@turn17474 күн бұрын
Can you get this as standalone system with a code to start on bootup? Thanks
@carterkraber67844 ай бұрын
Not running well, it keeps saying command not found when I type in python 3. gpt.py and I just can’t get it to run
@mohdismailmohtar5179 Жыл бұрын
Broo... U r the MANNN...
@thomasthemaker Жыл бұрын
Glad this helps man! I'm about to make an even better version, so watch out for that!
@Vimal7392 ай бұрын
So cool!
@johnmatheson9462 Жыл бұрын
this is awesome ive been trying to do the same project over the last week. i set up your code to use as an example for mine, but its running slow do you have any suggestions on how to speed it up? im running it on a rasp pi 4 8gb btw.
@thomasthemaker Жыл бұрын
The speed of the python script depends on the speed of speech-text + API call + text-to-speech (roughly). So a better mic + a wired connection for internet is my recommendation.
@thomasthemaker Жыл бұрын
Glad I could help, let me know if you have any video ideas suggestions!
@禄晨王5 ай бұрын
Hello,How to ensure stable access to the chatgpt api in China? Recently, v2ray was used, but it is unstable
@thomasthemaker5 ай бұрын
I'm not super familiar with the China networking & v2ray but it does seem like most ai model APIs are blocked in China. However, Vertex AI (from Google Cloud) still seems to be available
@禄晨王5 ай бұрын
@@thomasthemaker Thank you!
@nastynoah Жыл бұрын
I got it running, and its pretty slow. How do I exit back to my command line?????
@thomasthemaker Жыл бұрын
I'm creating a new version with better speed. Also Ctrl + C to exit
@hilmanafiq3627 Жыл бұрын
Great video! Thanks !!
@iron_ott7156 Жыл бұрын
is there a way to change the voice in to a more human like one?
@thomasthemaker Жыл бұрын
There is if you use gTTS instead of espeak. I'm about to make a new video on that
@Naitikojha-v4o11 ай бұрын
can i input in my robot which iam making using rasperry pi 4
@np16639 ай бұрын
I will also be trying this on my robot
@jrrisra Жыл бұрын
Awesome project! Just what I've been looking for. Thanks for this! [suggestion] Would've been better if the voice was less robotic. I think there are TTS models that does that.
@thomasthemaker8 ай бұрын
That's correct, but I do see that TTS can have a significant latency. But still a great option! (GPT API already has quite some latency anyway)
@davidgibson64493 ай бұрын
@@thomasthemaker Robotic voice is AWESOME!
@thomasthemaker3 ай бұрын
@@davidgibson6449 that's great to hear. Not everyone is into the robotic voice haha
@mytube1000javed7 ай бұрын
How to avoid hard coding API key. Suppose I want to give this device to someone else?
@thomasthemaker7 ай бұрын
You can have exclusive API for each person so if they use it maliciously, they get charged for it fully
@Aries29ah11 ай бұрын
Any chance I could buy the SD card image for the finished project off you?
@henryhancock739611 ай бұрын
Can you get gpt to interface with the io pins?
@nonchalant_morocco7 ай бұрын
Great questions, and i think you can. and it ll teach you some good stuff.
@Cartman-TV3 ай бұрын
great 😁 but can you change the voice? It sounds like Dr. Spidso from the 1990 🙃
@thomasthemaker3 ай бұрын
Haha, imma try. But if you try first! -nudging you to tinker-
@zhangxiang18 Жыл бұрын
Hey thanks for the great vid and does this chatbot understand and speak Chinese?
@thomasthemaker Жыл бұрын
I'm afraid not, just not right now
@Enchatèmção10 ай бұрын
I actually think it is pretty cool man.Can you tell me where we have to plug in the microphone and can the we use a Bluetooth speaker for the speaker
@Enchatèmção10 ай бұрын
Does it need wifi
@K2000-d5q Жыл бұрын
Hey ! Super cool project ! There is something I might have missed... is this like a skill to add to your Mycroft, or an independent skill that you can't have along the others ?
@thomasthemaker Жыл бұрын
I think you can certainly replicate this with MyCroft. But I haven't tried it tho
@jupiterjs031 Жыл бұрын
Thank you for the wonderful tutorial. Once the VLC is executed, the file finishes playing and the Listening for 'Hey'... It does not automatically turn into. VLC doesn't seem to be ending.
@VocaliseVisual9 күн бұрын
Would raspberry pie zero 2w work?
@thomasthemaker9 күн бұрын
@@VocaliseVisual yes it would
@alex595659 Жыл бұрын
Great job
@thomasthemaker Жыл бұрын
Hey thanks for the good words! I appreciate that
@mahdizayet401110 ай бұрын
very nice 🔥🔥🔥
@borisai9 ай бұрын
Actually, this is pretty amazing! What do you suggest as a energy source to run the rasp unplugged?
@thomasthemaker9 ай бұрын
I would say a solar power source + battery would be a good choice (15-20W should be enough).
@aldhenfrancisco96438 ай бұрын
Hi! Could you pls make a tutorial for voice assistant that has customized responses? Thank you
@okancan8191 Жыл бұрын
Hı ı have a problem aboute price account ı dont want to start price account so can you show me free way or different ı wait to your solves
@IPUTCROISSANTSINBLENDERS7 ай бұрын
Hi! Sorry for being late, but I’ve found a free, offline way. It’s called “alpaca”. Data slayer made a video on it, the description has the tutorial. It works for any operating system.
@dmitriychervonenko2953 Жыл бұрын
That is a great project. It would be great if you could enhance i even further. For example is it possible to use better text to speech engine which does not sound like a 20 year old robot, or somehow adopt GPT to give shorter answers to make it look more like a conversation rather than pronouncing a long passage? Thank you for your efforts.
@thomasthemaker Жыл бұрын
That's a really good feedback, the next version will have those improvements for sure! Thank you!
@friedonions8955 Жыл бұрын
Honestly, I prefer the robotic voice. It gives itself personality!
@thomasthemaker Жыл бұрын
@@friedonions8955 haha that's a first time I heard this. I'm considering making an update for a more human like voice. The issue is latency because espeak (robot voice) is a synthezier and Google voice (human voice) is a conversion algorithm
@panagiotischasapopoulos2438 ай бұрын
Great video Thomas! Thanks for sharing :) Could you probably provide us with some further information about how this mini microphone can be plugged in and used and what kind of speaker you connected to the Raspberry pi and how? Many thanks in advance!
@thomasthemaker8 ай бұрын
I would recommend a blue ice mic! Good balance of quality and price
@panagiotischasapopoulos2438 ай бұрын
Thanks for your immediate response! I already bought a mini microphone similar to the one you suggested in the video but indeed the quality of it is not that good. That’s why I asked. And what about the audio output do you use a HDMI adaptor for it? Thank you once again for the nice video and keep up the great work!
@thomasthemaker7 ай бұрын
@@panagiotischasapopoulos243 for audio output, HDMI should work fine
@sakuyarules Жыл бұрын
This was pretty cool, also goo to know about the cost and $5 credit, thanks!
@thomasthemaker Жыл бұрын
Yep, even without the 5$ credit, the API is wildly cheap for normal use (not costing more than 10$/yr)
@CerebralDad21 күн бұрын
How can you improve the lag time between the command and answer, like alexa or a google device?
@thomasthemaker10 күн бұрын
Good question. From what I see, the majority of latency comes from text -> voice & the other way around. Try plugging it into your Wi-Fi router with Ethernet cable
@thomasthemaker10 күн бұрын
And you could also use OpenAI whisper or ElevenLab to see if it is any better
@CerebralDad9 күн бұрын
@@thomasthemaker unfortunately not an option on the robot im building. The latency cant be that bad.
@kunalshah9124 ай бұрын
i have connected my speaker via AUX cable to the Pi and connected a MIC via USB, can u please share what changes i need to do in code to make it work?
@hervan20119 ай бұрын
Muchas gracias
@kravengamerz39615 ай бұрын
What to do at 4:48 ?? After the key is written what should we do next with the code
@DeathTempler Жыл бұрын
Can you get it to control motors and LED's? I'm new to the GPT space and am seeking to make a complex arduino android controlled by types of responses. Like a wealth of animations triggered by the chat bot's reply, and the attitude it associates with it's response.
@thomasthemaker Жыл бұрын
That actually sounds really cool. I would defo think about making a video on this . A gpt filter + split GPIO code into micro services will achieve this
@snoebix5125Ай бұрын
So getting a key is free ?
@ismaelperegrina82018 ай бұрын
This is awesome , thanks a lot , although I have not been able to make it properly run on raspberry pi zero w2 , have you tried it? It starts to listen and when triggered sometimes it works rcognizing speech sometimes it does not.
@aligumble366610 ай бұрын
I'll Try to make this myself. I'm planning to leave everything plugged in (microphone, speaker) and hang it on a pegboard. Will the Script Start automaticly after setting it up once? I dont Plan to leave a Monitor, mouse and keyboard connected. Also, can I change the Language to german? Awesome Video, thank you!
@user-lc3yp3pj6j6 ай бұрын
Can we use Bluetooth earphone with mic instead of mini microphone? We can directly connect using Bluetooth. Will it work?
@marti4679 Жыл бұрын
THOOOOMAAASSSSSS....... I LOVEEE YOURRR PROGET BUT I WOULD LIKE TO KNOW HOW TO CHANGE THE VOICE OF THE ASSISTANT .
@trispycee4 ай бұрын
I second this, I wanna try out some different AI voices 🙂
@andreafreeman63969 ай бұрын
Thank you for this!!! Do you know if/ how it’s possible to change how the voice sounds?
@zayanarshad887 ай бұрын
I'm guessing he used the pyttsx3 module (havent taken a look at the code), which uses the operating system's built in text to speech technology. You could try using openai's tts model, but that would be more code and an extra cost. I *have* however, opted to use it for many personal projects.
@GuillermoTs6 ай бұрын
What is the difference from use a web browser?
@thomasthemaker6 ай бұрын
It's like using Google voice on yr phone vs using a Google home mini. It's quite different
@MrLartisterouge Жыл бұрын
Hi, exellent video, really, you have resolved 1 month of research 👍, have a question : i'm french and i need to have the text in french (not the voice, just text ) how can change that ? this happens on the side of your code, or side of openai ?
@thomasthemaker Жыл бұрын
I would say mostly on the GPT side.
@Jerseylance18 ай бұрын
Nice bro🔥🔥🔥🔥🔥✌️
@lehuyen4187 Жыл бұрын
Interesting!!!
@thomasthemaker Жыл бұрын
Thank you!
@tenyimbright Жыл бұрын
One possible way to rewrite your sentence is: Hello, you make coding look so easy. Is it possible to use more than one AI platform at the same time?
@thomasthemaker Жыл бұрын
can you rephrase the question by any chance?
@imscalby10 ай бұрын
can you change the language?
@drevil1168 Жыл бұрын
Hi 👋 one question, would this work as well on an Orange pi and their Ubuntu version ?
@thomasthemaker Жыл бұрын
Yep. In fact, just as long as you have any computing device that can run Python3 & has a wifi connection, you can get this working. With that said, some libraries might not work the same way, but that's something that some googling can fix. Let me know how it goes tho
@drevil1168 Жыл бұрын
@@thomasthemaker thank you very much I will🙏
@dapperroag10 ай бұрын
the script can recognize what i’m saying, but i keep getting errors saying (‘Connection aborted.’, ConnectionResetError(104, ‘Connection reset by peer.’)) any ideas on how to fix it?
@nidzdotnet765 ай бұрын
So i'm making a robot. I'm thinking of using this because i have a spare pi and USB audio dongle. Can you limit the number of words in the response? Can you get other voice types like an alien?
@antonkirchner6900 Жыл бұрын
Hey Thomas nice project! Currently trying to do the same. Plan is to build a phone assistent for a local store. So instead of using mic using a IVR system with a SIM card so it takes calls. Is it possible to run it in a chat mode instead of completion mode so it actually follows through the conversation? 🤖
@thomasthemaker Жыл бұрын
Yes you can actually
@maartenspiegelenburg10157 ай бұрын
@@thomasthemakerhow
@hervan20119 ай бұрын
Excelente su video. Disculpa la pregunta se puede trabajar la IA CHATGPT sin estar inscrito o se debe tener un registro para poder realziar la aplicación de CHATBOT
@thomasthemaker9 ай бұрын
Unfortunately you do need to have an OpenAI account & API to do that
@brandonwideman25709 ай бұрын
This may be a silly question but I have a aibo ers1000 dog and would like to put ChatGPT into it, is there a way I could do this?
@FarahH-v6q Жыл бұрын
Thank u! Really awsome ! But can't I change the voice ? Ik u said it could be worse with gTTs but isn't there an another solution?
@thomasthemaker Жыл бұрын
At the moment, I don't know of anything that sounds better, but I'm working on an app to incorporate this, so potentially you will have the normal Google Voice assistant's voice for it.
@brayanrayan48537 ай бұрын
Hi can i do in Spanish language? Please is for a university project. Thanks so much !
@sussyshubham6 ай бұрын
Will it work with Raspbeeey pi Pico?
@thomasthemaker6 ай бұрын
Unfortunately not because a pico is a micro controller. Although it does have python and wifi, maybe worth a try
@Myth_sg7 ай бұрын
and how to change the sound
@FarazKhan-dm9bw2 ай бұрын
Hello brother I liked your project. But I have a question. Can I use a raspberry pi 3a+ to make this ???? Please respond quickly brother. You got a new sub
@thomasthemaker2 ай бұрын
Howdy, you certainly can. As long as it has wifi onboard
@FarazKhan-dm9bw2 ай бұрын
@@thomasthemaker thanks
@default_youtube_profile Жыл бұрын
in your github repo you have shared , can you please add requirements.txt file ?
@livinginsouthflorida93466 ай бұрын
Hi Thomas, Thanks for this educational video, loved it. I do have an idea of developing a device using voice recognition and AI. However, I would like different types of humans voices to answer questions, and the devices shold built on the smallest Rasberry PI possible. I Can give you more details if you're interested in helping me wiht this project. thanks so much !!
@thomasthemaker6 ай бұрын
Thanks for the feedback. This has been quite a popular response. I'm putting that as my next video for sure!
@mozbeat2162 Жыл бұрын
Hi I tryed this today on my mac but the script dont react to any sound. Probably because its not connectet to my mic but in the audio settings isnt a hdmi devise like you showed
@thomasthemaker Жыл бұрын
Let's run through some simple debugging. 1. Did it pick up your voice? If not, has to be the code not picking up the right mic.If so, move on. 2. Is it printing out the response in the terminal? If not, the API and/or wifi is not working. If yes, move on. 3. In this case, there can only be the python script not outputting to the right speaker. Let me know if this helps
@randomroy249 ай бұрын
Hey thomas, How do i change the voice accent of this one?
@thefatguy7947 Жыл бұрын
Awesome! Does this support other languages!
@thomasthemaker Жыл бұрын
Yes, I believe the API key is universal, I would recommend Go, C or Dart (maybe even JS) if you wanna go with something else
@TahaHussain-c3h9 ай бұрын
I had this error /usr/bin/python3: can't find '__main__' module in '/home/Tah213/gpt2.py'
@markboweringphotography4408 Жыл бұрын
I get the following error when trying to Pip3 install the PyAudi: ERROR: Could not build wheels for PyAudio Any ideas?
@thomasthemaker Жыл бұрын
I would recommend running this pip3 install --upgrade pip3 setuptools wheel Or simply Pip3 install wheel
@anhquangnguyen6208 ай бұрын
Sau khi mình copy code vào mục sudo nano gpt.python thì làm gì nữa vậy a e đến bước này mà không làm đc nữa
@thomasthemaker8 ай бұрын
Xong rồi chạy code thôi em: python3 gpt.py
@anhquangnguyen6208 ай бұрын
Ok anh e làm đc rồi ạ. Thankyou anh mà trong phần mô tả, phần code để dán vào thư mục í, dòng 12-13-14 thiếu dấu # ở đầu nên bị lỗi e ktra mãi mới thấy :((
@SpooderOfficial5 ай бұрын
Does ChatGPT have a conversation with you in this script?
@thomasthemaker5 ай бұрын
Yes!
@SpooderOfficial5 ай бұрын
@@thomasthemaker Awesome! I'm new to this and I just bought a raspberry pi, it should be coming very soon. Thank you for this really cool tutorial, it inspired me to work on my first raspberry pi project
@thomasthemaker5 ай бұрын
@@SpooderOfficial I appreciate that! Let me know how you like your pi when you get it
@randomroy249 ай бұрын
Also will it be able to read other languages?
@Myth_sg7 ай бұрын
can you make in windows
@Luukverheijen-e1x7 ай бұрын
would a Raspberry Pi Zero 2 W work?
@thomasthemaker7 ай бұрын
It would, might be slower but still work
@Luukverheijen-e1x7 ай бұрын
thanks @@thomasthemaker
@pirateben Жыл бұрын
can we add a database to this so it can recall charters and town like a link in a video game with keywords like make a town make a npc
@thomasthemaker Жыл бұрын
I suppose you can, it's a very simple function to implement, so yes
@Pitzie86 Жыл бұрын
I like to have a face who talks to you. Like emo the robot, that would be cool 😎
@user-lc3yp3pj6j6 ай бұрын
Do you connect microphone to laptop usb or raspberry Pi usb?
@thomasthemaker6 ай бұрын
Raspberry Pi USB was what I used
@onkarbatra9884 Жыл бұрын
Great! Did you faced any problems with the script recognizing wake-word? I've been trying for hours now. Any suggestions?
@thomasthemaker Жыл бұрын
I did actually, there's a latency at every step. I would recommend trying a better mic, when I did that, the number of trials come down from 12 to 2
@ismaelperegrina82018 ай бұрын
@@thomasthemaker Jisus Crais , so is that difficult to make the mic work properly?
@phenoumeneАй бұрын
could you do this locally? local llm on raspberry?
@thomasthemakerАй бұрын
@@phenoumene you could try ollama with tiny llama model out
@phenoumeneАй бұрын
really? a runner like ollama with llama 7b can run efficiently on rasperry? wow im impressed ! thank you
@thomasthemakerАй бұрын
@@phenoumene not llama. Well it does run with some 10-sec latency on pi5 but I always recommend tiny llama (720mil) on RPi 4 and up
@phenoumeneАй бұрын
thanks for your advices!
@thomasthemakerАй бұрын
@@phenoumene no problem! Let me know if it works
@justarandomguy5647 ай бұрын
i have a small doubt .the thing is the voice of the ai is like robotic can u try to integrate a voice in it . also the answer it gives is pretty big .can u try to shorten it a bit . i love ur work .i appreciate it soo much if u respond cause ive got a project . pls do respond
@thomasthemaker7 ай бұрын
I believe there is a parameter for that in how you use the OpenAI library in python, try reading into the documentation! Lemme know if you have any issues
@justarandomguy5647 ай бұрын
@@thomasthemakerthere is a parameter in openai docs to limit the no. of charactar in the text .but the robotic voice is something which is purely based on the OS that we are using idk how to rectify it ...
@thomasthemaker7 ай бұрын
@@justarandomguy564 you can also use OpenAI text to voice. At the time of me making the video, this was not very stable. But currently, I highly recommend it. It's quite better than the typical Google Voice API. There should also be another version of the python script in my GitHub. Take a look at that!