I've watched almost all of your videos, great work! Please make more useful videos.
@TechMakerAI3 сағат бұрын
Thank you, will do!
@estugit7 сағат бұрын
Great work, very helpfull video
@TechMakerAI3 сағат бұрын
Glad to hear that!
@drimscape5 күн бұрын
can i use any other model? i like gemma more. i am a completely novice
@TechMakerAI5 күн бұрын
Yes, you can use Gemma model with Ollama. I have an intro video about Google Gemma model, you can find it here kzbin.info/www/bejne/h3PVm4mqgruIabc
@xpectz5 күн бұрын
Script crashes from time to time, FYI. Something regarding the chat history and/or communication with the google gemini AI library. I looped the .py script to restart every 2 min as a workaround. Luckily, these sorts of errors are not too common. Also please tell me how to make it stop listening. I tell it "that is all" and it still picks up what I say.
@TechMakerAI5 күн бұрын
Thank you for your feedback! I am aware of the communication issue with Google Gemini API. It can cause crash sometimes. I have seen less issues with the OpenAI ChatGPT API but that is not free. I made some changes to the code on line 259 in this version. When you say "That is all", it should stop interacting with Gemini API but it is still printing out what you are saying. You can comment out all the print() since you do not need it to print transcript when using RPi (It is there only for debugging purpose) or you can move lines 259 to 263 after line 270 (if "jack" in text.lower() and slang == "en-EN":). Note that this code was written so that users can interact with AI anytime they want. They can wake up AI and put it in sleeping mode. This voice assistant should be on all the time like Siri on your phone. If you stop it from listening, then how do you wake up it next time?
@xpectz5 күн бұрын
@@TechMakerAI Got it. I have follow up questions. If I do not say "That is all", how many minutes until it times out which will require the wake word? Which line can I modify this? Also, I already have an OpenAI API Key i paid for. How can I switch over to Open AI???
@TechMakerAI5 күн бұрын
@xpectz: For your first question regarding how many times it takes for it to require the wake word, I think you can add an integer variable to count the times and then set the AI to sleeping mode after it reaches a threshold. For the OpenAI version, please see this video: kzbin.info/www/bejne/oXqumJ9pn6mcors
@xpectz5 күн бұрын
@@TechMakerAI How does it work now? When I stop talking to it, it goes to sleeping mode. What triggers it? I have not timed it. Will check out the video, thanks.
@TechMakerAI5 күн бұрын
If you add an integer variable to count the times and then set the AI to sleeping mode after it reaches a threshold, then, it will be triggered by your integer. To wake it up, you just need to say the wake word again.
@xpectz5 күн бұрын
How many minute until it stops listening? Is there a way to adjust it? Or to tell it to stop listening?
@TechMakerAI5 күн бұрын
Please see my reply to your newer question.
@xpectz5 күн бұрын
Would like to add that it works with the Google AIY voice kit. I do have 1 weird error when I launch the script but it still works. <frozen importlib._bootstrap>:228: RuntimeWarning: Your system is neon capable but pygame was not built with support for it. The performance of some of your blits could be adversely affected. Consider enabling compile time detection with environment variables like PYGAME_DETECT_AVX2=1 if you are compiling without cross compilation. /home/pi/.venv/lib/python3.9/site-packages/gpiozero/devices.py:300: PinFactoryFallback: Falling back from lgpio: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /home/pi/.venv/lib/python3.9/site-packages/_lgpio.cpython-39-arm-linux-gnueabihf.so) warnings.warn(
@pixyful70255 күн бұрын
hey ! already thank you for sharing a file that really works 😀👍 I try to launch your python script at raspberry startup but impossible to start it with the virtual environment. I have an error message "import google.generativeai as genai" except if I enter the line manually everything works do you have any idea how to do it?
@TechMakerAI5 күн бұрын
Hi, @pixyful7025, I am glad it is working. It is possible to automatically launch this Python program at the startup of RPi. I have a video on this topic coming up very soon. Please subscribe to my channel as you will be notified when it is out.
@pixyful70255 күн бұрын
@@TechMakerAI I found a little thing that seems to work by tinkering. I wrote it in .bashrc and told the raspberry to log in automatically
@pixyful70255 күн бұрын
@@TechMakerAI I will wait for your video to compare the most optimized 😉
@MrBluedrive17 күн бұрын
can you also make a tutorial to work with a bluetooth speaker and without the leds. or wouldnt it work that way?
@TechMakerAI16 күн бұрын
Yes, it will work with a Bluetooth speaker and without LEDs. I have used the Bluetooth speaker before, see this video kzbin.info/www/bejne/pHnTe5R7appsqJY. But it requires me to run some commands to pair the Raspberry Pi with the Bluetooth speaker each time. So I switched to wired speaker after that.
@N_D-p6s19 күн бұрын
hey the open ai is not free, what do i do instead of open ai ??
@TechMakerAI19 күн бұрын
You can try some free ones like Llama-3 kzbin.info/www/bejne/jmnVoYKJgKmabKs
@dronebot2079Ай бұрын
Hey the gemini ai, great project. Made it myself on respberry pi zero 2w. It sounds very dull and cant do much. Can you build google assistant on respberry pi? I tried to make it but there are some error from google side(it doesn't register model in project page) . Thank you in advance.
@TechMakerAI29 күн бұрын
Great question! That can be a topic for a new video. RPi zero 2 W may not have the computing power to run a Gemini-powered voice assistant.
@chithraniathapaththu5655Ай бұрын
Are you are using pi 4? I don't know but it dosen't work in my rpi 5. It talking like 1-5 mintues to converte. Can you help me
@TechMakerAIАй бұрын
Hi, I had a similar problem with my old USB microphone few months ago. I got a new one recently. It has been working well. Do you have another microphone to try? The code should work on RPi 5.
@funnyprankforlaughter1388Ай бұрын
❤good sir
@TechMakerAIАй бұрын
Thank you!
@VINSMOKExOSKIАй бұрын
Traceback (most recent call last): File "e:\BNOSKI\chat.py", line 5, in <module> from openai import OpenAI ImportError: cannot import name 'OpenAI' from 'openai' (C:\python311\Lib\site-packages\openai\__init__.py)
@TechMakerAIАй бұрын
Have you installed the OpenAI python package as mentioned on the GitHub page?
@dronebot2079Ай бұрын
Will it run on a respberry pi zero 2w? If yes please make a complete tutorial
@TechMakerAIАй бұрын
Yes, it will. The procedure to create Python virtual environment will be the same on Pi zero 2 W.
@ADOPLAZАй бұрын
Bro will it work in raspberry Pi zero
@TechMakerAIАй бұрын
@ADOPLAZ: Hi, it should "work" on Pi zero, but you may need to use another text-to-speech engine such as gTTS because the audio quality of the Pyttsx3 package is not good on Pi. Please have a look at this video kzbin.info/www/bejne/oXacZqt3as-JjbM to see how you can use gTTS.
@ADOPLAZАй бұрын
@@TechMakerAI thanks bro, It is for my school project
@kingm6837Ай бұрын
ive followed all the steps and when i speak to it it doesn't respond, just keeps saying listening, can you help please
@TechMakerAIАй бұрын
Check your mic and make sure it is working. Also check the speech recognition part, and make sure it is talking to your mic.
@yuvraajbhatter266927 күн бұрын
you have to start the convo with "hey jack..." say to it while its listening "hey jack, tell me a joke" make sure jack is said clearly
@cyberdevil657Ай бұрын
Hi i think i eft a comment last time i needed your help. I'm building something and i want your help i have many qesutions and i promised i would supp if you would help me. Is it good for you we have a chat togheter on discord?
@TechMakerAIАй бұрын
Hi, @cyberdevil657, for business inquiries, you can find my email by going to www.youtube.com/@techmakerai and then clicking "more" under my channel name.
@cyberdevil657Ай бұрын
@@TechMakerAI I replied my friend.
@Yailya012 ай бұрын
Sir How do I auto run the python script when the rasberypi just turns on? I use cron -e with the voice assistant script but the mic and audio are not detected
@TechMakerAIАй бұрын
Hi, @Yailya01, that is a very good question. I have a video coming up about this topic. Please subscribe to my channel as you will be notified when it is out.
@Yailya01Ай бұрын
@@TechMakerAI I've sub and bell, waiting for your next content
@peaceandlovetoyou2 ай бұрын
Can you add input so that it asks the user what they need..?
@TechMakerAIАй бұрын
Yes, it is possible. Meanwhile, you can change the "text" variable in the code and run it again, it will generate an image according to your input.
@peaceandlovetoyou2 ай бұрын
Thank you🎉
@TechMakerAIАй бұрын
You’re welcome 😊
@peaceandlovetoyou2 ай бұрын
Good video🎉Download also in Arduino
@TechMakerAIАй бұрын
Ok. Thanks
@funnyprankforlaughter13882 ай бұрын
❤🎉sir you are doing great job
@TechMakerAI2 ай бұрын
Thanks! Glad you liked it.
@Yailya012 ай бұрын
Hi there, can I change the country in speech to text? Or not
@TechMakerAI2 ай бұрын
@Yailya01: Please check out my new video in which I showed how you can change the language: kzbin.info/www/bejne/oXqumJ9pn6mcors
@Yailya012 ай бұрын
@@TechMakerAI I have followed and watched the latest but when I spoke there was no transcript of the speech to text
@TechMakerAI2 ай бұрын
@@Yailya01 What language option (slang) are you using in the "rec.recognize_google()" function? It works well for the English language when I set the variable "slang" to "en-EN".
@demianschultz37492 ай бұрын
Very interesting, thanks
@TechMakerAI2 ай бұрын
You are welcome.
@Skooly-u7w2 ай бұрын
I would like to know if there is a possibility to have a different language or dialect or how to train that model to speak that language
@TechMakerAI2 ай бұрын
@Skooly-u7w: Yes, you can speak or ask questions in another language. Please check out my new video here in which I demonstrated how to do it: kzbin.info/www/bejne/nYqpeHuvd8SJgJI.
@Skooly-u7w2 ай бұрын
@@TechMakerAI I can see what you did there but I am trying to get it speak dialect not native language
@TechMakerAI2 ай бұрын
@Skooly-u7w: In that case, you will need to find a text-to-speech engine that supports your local dialect. Once you have that, then you can use it with my Python code.
@hugogarcia26812 ай бұрын
Thank you for your help.. what do we do after this for a media server plz
@TechMakerAI2 ай бұрын
@hugogarcia2681: You will need to install a media server such as Plex on your Pi.
@funnyprankforlaughter13882 ай бұрын
Good job 😊
@TechMakerAI2 ай бұрын
Thank you! Cheers!
@MULTIVIDEOCHANNE2 ай бұрын
hi sir good job
@TechMakerAI2 ай бұрын
Thanks and welcome.
@areebmianoor44492 ай бұрын
This is awesome. Thank you for sharing. I had a question: How can I make the multilingual voice assistant be dynamic I.e. change from an Arabic Voice whilst talking to an English voice based on the user's request, during a voice communication.
@TechMakerAI2 ай бұрын
Hi, @areebmianoor4449, Thanks. The large language model can handle multilingual questions "dynamically", but the speech recognition and text-to-speech conversion parts of the code need to know the language first. Otherwise, the result will not be good. If this is something you want to do, I would suggest you try some multilingual TTS and multilingual speech recognization models.
@r-l-h7p2 ай бұрын
Love the project! Lets say one would run this on a raspberry pi. You reckon there are ways to make the delays (from when it starts listening to it actually outputting the translating text) shorter?
@TechMakerAI2 ай бұрын
Hi @ZBZBZB417: thanks! Very good question. Yes, it will work on Raspberry Pi. I have been working to improve these delays. Please subscribe to my channel as you will be notified when the new video is out.
@SystemDemon2 ай бұрын
Hi i'm working on a big project but i'm as good as defeated i want to ask if i can have a voice chat with you. I will subscribe to you if you can have a chat with me because i'm breaking my head. Thanks
@TechMakerAI2 ай бұрын
Hi, for business inquiries, you can find my email by going to www.youtube.com/@techmakerai and then clicking "more" under my channel name.
@jeffreyhao13432 ай бұрын
I get this error when running the code on Laptop (Ubuntu 22.04) as follows. Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started
@TechMakerAI2 ай бұрын
Hi, have you installed all the packages for this project? I have a new version of this code which I talked in this video kzbin.info/www/bejne/oXacZqt3as-JjbM. Maybe you can give that a try.
@jeffreyhao13432 ай бұрын
I like your videos on AI models running on edge devices. Very cool.
@TechMakerAI2 ай бұрын
Glad you like them!
@ryeetzy26243 ай бұрын
can you make a video of this but using piperTTS?
@TechMakerAI3 ай бұрын
Yes, that is the plan. Please subscribe to my channel so that you will be informed once that video is published.
@user-bm3rg7jf8g3 ай бұрын
Hello. Where can I reach you to agree about hiring you for some projects
@TechMakerAI3 ай бұрын
Hi, @user-bm3rg7jf8g, you can find my email by going to www.youtube.com/@techmakerai and then clicking "more" under my channel name.
@ryeetzy26243 ай бұрын
can you further explain the python virtual environment?
@ryeetzy26243 ай бұрын
how did you enable the venv
@TechMakerAI3 ай бұрын
Please take a look at this document: docs.python.org/3/library/venv.html
@ryeetzy26242 ай бұрын
But what did you click to appear the “source ~/.venv/bin/activate “ ? Because when i typed that, there was an error as far as I remember.
@TechMakerAI2 ай бұрын
Hi, I have a new video about this topic. It will be online very soon.
@ryeetzy26243 ай бұрын
how to transfer the python code to raspi?
@TechMakerAI3 ай бұрын
Please check out this video: kzbin.info/www/bejne/pHnTe5R7appsqJY
@ryeetzy26243 ай бұрын
@@TechMakerAI after doing all this can it run even without pc?
@TechMakerAI3 ай бұрын
Yes, you can. It is possible to make Raspberry Pi execute the Python program right after startup.
@ryeetzy26243 ай бұрын
thanks you've been so helpful to me, but i just have 1 question, this is free right?
@TechMakerAI3 ай бұрын
@ryeetzy2624, Yes, Google Gemini API has a free tier. You can use it for free within a limit.
@ryeetzy26243 ай бұрын
@@TechMakerAI what is the limit?
@TechMakerAI3 ай бұрын
It depends on the model you choose, see the rate limits here ai.google.dev/pricing
@ryeetzy26243 ай бұрын
hi is the code will still run even though my openai api is expired?
@TechMakerAI3 ай бұрын
Hi, @ryeetzy2624: Yes. If you change line 39 to "openaitts = False", it will not use the OpenAI TTS. So you do not need OpenAI service. Alternatively, you can use this newer version: kzbin.info/www/bejne/mGjPg4Shf5ergKM or Meta Llamma-3 model at: kzbin.info/www/bejne/jmnVoYKJgKmabKs
@ryeetzy26243 ай бұрын
can you elaborate what will you do after clicking environment variables
@TechMakerAI3 ай бұрын
Hi, @ryeetzy2624, Please check the updated Github page for detailed instructions after that, github.com/techmakerai/Python-OpenAI-API-Voice-Chatbot/
@ryeetzy26243 ай бұрын
@@TechMakerAI yeah i think it's expired
@TechMakerAI3 ай бұрын
Hi, @ryeetzy2624: If that is the case, you can try the Google Gemini model at: kzbin.info/www/bejne/mGjPg4Shf5ergKM or the Meta Llamma-3 model at: kzbin.info/www/bejne/jmnVoYKJgKmabKs.
@lightry-glr3 ай бұрын
first :>>can you give me your ig so we can make friends and exchange?
@TechMakerAI3 ай бұрын
Hi, please reach out to me at GitHub
@lightry-glr3 ай бұрын
@@TechMakerAI I have followed you and how do I send you a message?
@TechMakerAI3 ай бұрын
Hi, please reach out to me via my email on my KZbin channel's "About" page.
@firmankrisnadi72483 ай бұрын
Can I use it for teaching English, so it becomes AI teacher...if yes.... How to write the code... Thank you in advance...God bless U
@TechMakerAI3 ай бұрын
That is a great question. The current version of the code allows you to have a conversation with AI. That will help your students with speaking and listening. You can also ask AI to explain grammar questions. I am not sure how you want to teach English? Are you a teacher? Do you teach English to native speakers or to non-English speaking students?
@firmankrisnadi72483 ай бұрын
@@TechMakerAI to teach non English speaking student ( Indonesia students).. please help....any link for the code ( any full tutorial about it)... Highly appreciate for your genericity.. God bless U 🙏
@TechMakerAI3 ай бұрын
Hi, @firmankrisnadi7248, I think you can certainly use it to teach English. For example, you can ask ChatGPT to create a study plan for someone who does not know anything about the English language. You can also ask it to generate some questions about a paragraph to test the students' reading and understanding. Please check out this article for more info: thinkinginenglish.blog/2023/02/27/211-how-to-use-ai-and-chatgpt-to-study-english.
@SiliconSouthShow3 ай бұрын
well done on video friend, keep it up
@TechMakerAI3 ай бұрын
Thank you 👍
@m9playz2393 ай бұрын
Can we use in Raspberry pi?
@TechMakerAI3 ай бұрын
Yes, it should work on Raspberry Pi.
@NeeharikaJha3 ай бұрын
Can it support multilanguage inputs? If not, how can i achieve that?
@TechMakerAI3 ай бұрын
It may not be an easy task to use multiple languages in one input (question). But you can certainly ask Gemini to translate from one language to another, see my new video here: kzbin.info/www/bejne/pGLPaWSMq5ukh6s. Please subscribe to my channel as I have a new video coming up in which I will cover more about this topic.
@NeeharikaJha3 ай бұрын
@@TechMakerAI Thankyou for your reply. Also I had doubt regarding google account creation, on website it says auto payment is not supported but as soon as made my billing account I got a msg : Auto-Pay activated on Kotak Card xXXXX for Google Cloud from 29/05/2024 for INR 75000.00., why so ? Will it auto pay after the given time period ?
@shanemichael23763 ай бұрын
Thanks for the video Man, its really interesting. I am using a 2014 model of Raspberry PI (model B+ V1 2) (2014). python version 3.11.9 installed using pyenv on the raspberryPI. When I try “pip install -q -U google-generativeai ” ... it takes lot of time and almost after 7 hours I am getting the following error. “Error error: subprocess-exited-with-error × Building wheel for grpcio (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [936 lines of output] Found cython-generated files..................................................................... File "/tmp/pip-build-env-a68elnuh/overlay/lib/python3.11/site-packages/setuptools/_distutils/unixccompiler.py", line 190, in _compile raise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for grpcio Failed to build grpcio ERROR: Could not build wheels for grpcio, which is required to install pyproject.toml-based projects ” I tried most of the solutions found in stack overflow and ChatGPT,,, but not able to resolve the error... Any inputs? Appreciate your time and efforts....Thanks
@TechMakerAI3 ай бұрын
Hi, I have never seen this error message before. I have heard that this Google Generative AI package works better with the Python 3.10. Maybe you can give that a try.
@user-om7du4il1u4 ай бұрын
not workinganymore can you do another tutorial how make it work ?
@TechMakerAI4 ай бұрын
Hi, @user-om7du4il1u, I just did a test today. This code still works on my computer. If it is printing your question but not providing any outputs from AI, please check and make sure you have enough OpenAI API credit available here platform.openai.com/usage Please subscribe to my channel as I have a new video on GPT coming up soon.
@user-om7du4il1u4 ай бұрын
@@TechMakerAI thank you sir i will test and let you know
@firmankrisnadi72484 ай бұрын
It's really stunning...How to make it speaks in Indonesian language or any others... What should I do.. please kindly provide the tutorial link/documents of it... Highly appreciate... thanks in advance
@TechMakerAI4 ай бұрын
Hi, @firmankrisnadi7248, thanks, welcome to my channel! I am working on project in which I will chat with AI in English and then I will switch to another language in the middle. Please subscribe to my channel as you will be notified when it is released.
@firmankrisnadi72484 ай бұрын
@@TechMakerAI I appreciate and thankful for your fast respon... Subscribe automatically.... looking forward to your next amazing tutorials
@mostafayasser78424 ай бұрын
I'm using ubuntu and I got this error AttributeError: module 'google.generativeai' has no attribute 'GenerativeModel'
@TechMakerAI4 ай бұрын
Hi, @mostafayasser7842: Which version of Python are you using on your Ubuntu? I am using Python version 3.10 on my Windows machine. It works well with this version of Python.
@messaoudallalouche4 ай бұрын
It works on windows 10 or not?
@TechMakerAI4 ай бұрын
Hi, @messaoudallalouche: Yes, It should work on Win 10.