Пікірлер
@SystemDemon
@SystemDemon 2 күн бұрын
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
@TechMakerAI
@TechMakerAI Күн бұрын
Hi, for business inquiries, you can find my email by going to www.youtube.com/@techmakerai and then clicking "more" under my channel name.
@jeffreyhao1343
@jeffreyhao1343 3 күн бұрын
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
@TechMakerAI
@TechMakerAI 3 күн бұрын
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.
@jeffreyhao1343
@jeffreyhao1343 3 күн бұрын
I like your videos on AI models running on edge devices. Very cool.
@TechMakerAI
@TechMakerAI 3 күн бұрын
Glad you like them!
@ryeetzy2624
@ryeetzy2624 4 күн бұрын
can you make a video of this but using piperTTS?
@TechMakerAI
@TechMakerAI 4 күн бұрын
Yes, that is the plan. Please subscribe to my channel so that you will be informed once that video is published.
@user-bm3rg7jf8g
@user-bm3rg7jf8g 5 күн бұрын
Hello. Where can I reach you to agree about hiring you for some projects
@TechMakerAI
@TechMakerAI 5 күн бұрын
Hi, @user-bm3rg7jf8g, you can find my email by going to www.youtube.com/@techmakerai and then clicking "more" under my channel name.
@ryeetzy2624
@ryeetzy2624 6 күн бұрын
can you further explain the python virtual environment?
@ryeetzy2624
@ryeetzy2624 6 күн бұрын
how did you enable the venv
@TechMakerAI
@TechMakerAI 6 күн бұрын
Please take a look at this document: docs.python.org/3/library/venv.html
@ryeetzy2624
@ryeetzy2624 6 күн бұрын
how to transfer the python code to raspi?
@TechMakerAI
@TechMakerAI 6 күн бұрын
Please check out this video: kzbin.info/www/bejne/pHnTe5R7appsqJY
@ryeetzy2624
@ryeetzy2624 6 күн бұрын
@@TechMakerAI after doing all this can it run even without pc?
@TechMakerAI
@TechMakerAI 6 күн бұрын
Yes, you can. It is possible to make Raspberry Pi execute the Python program right after startup.
@ryeetzy2624
@ryeetzy2624 8 күн бұрын
thanks you've been so helpful to me, but i just have 1 question, this is free right?
@TechMakerAI
@TechMakerAI 8 күн бұрын
@ryeetzy2624, Yes, Google Gemini API has a free tier. You can use it for free within a limit.
@ryeetzy2624
@ryeetzy2624 8 күн бұрын
@@TechMakerAI what is the limit?
@TechMakerAI
@TechMakerAI 7 күн бұрын
It depends on the model you choose, see the rate limits here ai.google.dev/pricing
@ryeetzy2624
@ryeetzy2624 8 күн бұрын
hi is the code will still run even though my openai api is expired?
@TechMakerAI
@TechMakerAI 8 күн бұрын
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
@ryeetzy2624
@ryeetzy2624 13 күн бұрын
can you elaborate what will you do after clicking environment variables
@TechMakerAI
@TechMakerAI 13 күн бұрын
Hi, @ryeetzy2624, Please check the updated Github page for detailed instructions after that, github.com/techmakerai/Python-OpenAI-API-Voice-Chatbot/
@ryeetzy2624
@ryeetzy2624 8 күн бұрын
@@TechMakerAI yeah i think it's expired
@TechMakerAI
@TechMakerAI 8 күн бұрын
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.
@pvaqt595
@pvaqt595 19 күн бұрын
first :>>can you give me your ig so we can make friends and exchange?
@TechMakerAI
@TechMakerAI 19 күн бұрын
Hi, please reach out to me at GitHub
@pvaqt595
@pvaqt595 19 күн бұрын
@@TechMakerAI I have followed you and how do I send you a message?
@TechMakerAI
@TechMakerAI 19 күн бұрын
Hi, please reach out to me via my email on my KZbin channel's "About" page.
@firmankrisnadi7248
@firmankrisnadi7248 20 күн бұрын
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
@TechMakerAI
@TechMakerAI 20 күн бұрын
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?
@firmankrisnadi7248
@firmankrisnadi7248 20 күн бұрын
@@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 🙏
@TechMakerAI
@TechMakerAI 20 күн бұрын
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.
@SiliconSouthShow
@SiliconSouthShow 23 күн бұрын
well done on video friend, keep it up
@TechMakerAI
@TechMakerAI 23 күн бұрын
Thank you 👍
@m9playz239
@m9playz239 24 күн бұрын
Can we use in Raspberry pi?
@TechMakerAI
@TechMakerAI 24 күн бұрын
Yes, it should work on Raspberry Pi.
@NeeharikaJha
@NeeharikaJha 27 күн бұрын
Can it support multilanguage inputs? If not, how can i achieve that?
@TechMakerAI
@TechMakerAI 27 күн бұрын
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.
@NeeharikaJha
@NeeharikaJha 26 күн бұрын
@@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 ?
@shanemichael2376
@shanemichael2376 Ай бұрын
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
@TechMakerAI
@TechMakerAI Ай бұрын
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-om7du4il1u
@user-om7du4il1u Ай бұрын
not workinganymore can you do another tutorial how make it work ?
@TechMakerAI
@TechMakerAI Ай бұрын
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-om7du4il1u
@user-om7du4il1u Ай бұрын
@@TechMakerAI thank you sir i will test and let you know
@firmankrisnadi7248
@firmankrisnadi7248 Ай бұрын
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
@TechMakerAI
@TechMakerAI Ай бұрын
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.
@firmankrisnadi7248
@firmankrisnadi7248 Ай бұрын
@@TechMakerAI I appreciate and thankful for your fast respon... Subscribe automatically.... looking forward to your next amazing tutorials
@mostafayasser7842
@mostafayasser7842 Ай бұрын
I'm using ubuntu and I got this error AttributeError: module 'google.generativeai' has no attribute 'GenerativeModel'
@TechMakerAI
@TechMakerAI Ай бұрын
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.
@messaoudallalouche
@messaoudallalouche Ай бұрын
It works on windows 10 or not?
@TechMakerAI
@TechMakerAI Ай бұрын
Hi, @messaoudallalouche: Yes, It should work on Win 10.
@messaoudallalouche
@messaoudallalouche Ай бұрын
OK, I see thank you
@SiliconSouthShow
@SiliconSouthShow 23 күн бұрын
yes any machine its not heavy duty for llama 3 8B
@user-qe4xu7ql3c
@user-qe4xu7ql3c Ай бұрын
cool😊
@Maeve472
@Maeve472 Ай бұрын
Can you make it with elevenlabs integration?
@TechMakerAI
@TechMakerAI Ай бұрын
@Maeve472, Yes, it is possible to use ElevenLabs API for the TTS part of the code. If you have not done so, please subscribe to our channel as we have more videos coming up soon.
@Maeve472
@Maeve472 Ай бұрын
@@TechMakerAI Ok im waiting for it then for opensourceee ^<4
@alarynx
@alarynx Ай бұрын
Informative, thanks for posting.
@TechMakerAI
@TechMakerAI 19 күн бұрын
Glad it was helpful!
@aronds24
@aronds24 Ай бұрын
M the 100th subscriber😂😂✨✨ Nice video man
@TechMakerAI
@TechMakerAI Ай бұрын
@aronds24: Thank you for subscribing and your encouragement! It helps me a lot.
@fernandotinno3264
@fernandotinno3264 2 ай бұрын
I try to make the connection With this system tô my google nest mini but i dont have ideia how i do it, someone have an ideia?
@TechMakerAI
@TechMakerAI 2 ай бұрын
Hi the Raspberry Pi should work with Bluetooth speakers. I have used Echo dot in my previous video at kzbin.info/www/bejne/pHnTe5R7appsqJY.
@matthiasdegenkolb3429
@matthiasdegenkolb3429 2 ай бұрын
too bad Google Gemini not available in the EU. Any alternative service for chatbot + search engine (e.g. how to rig with Microsoft Bing+Copilot) ?
@TechMakerAI
@TechMakerAI 2 ай бұрын
There are open-source LLMs too. Maybe you can look into that. Also, please subscribe to our channel as we have new videos on open-source models coming up soon.
@LowFrameDuck
@LowFrameDuck 2 ай бұрын
Hello @TechMakerAI, I've set up the virtual environment and copied the code, an added my OpenAI API. However, when I play it and say the wake-up word, it doesn't reply.
@TechMakerAI
@TechMakerAI 2 ай бұрын
@LowFrameDuck: Hi, do you see the print-out of your question on the screen like in my video at time 0.37 s. if so, you may need to check to make sure you have credits on your OpenAI account. The credits can not be expired. If all is good, check that the TTS function is working.
@LowFrameDuck
@LowFrameDuck 2 ай бұрын
@@TechMakerAI I think they have expired Thanks!
@TechMakerAI
@TechMakerAI 2 ай бұрын
@@LowFrameDuck Hi, please check my new video at kzbin.info/www/bejne/eILYioeFnteJr5Y in which I built a voice chatbot with Google Gemini which is free to use as of today.
@haulu159
@haulu159 2 ай бұрын
why pygame is hard to use
@TechMakerAI
@TechMakerAI 2 ай бұрын
Hi, there, it takes some time to install and configure it correctly. But once you set it up, it works better than other packages. Please see our new video in which we used Pygame for a Google Gemini-powered voice chatbot: kzbin.info/www/bejne/eILYioeFnteJr5Y. It also works with Raspberry Pi. That is another reason why we use Pygame.
@m9playz239
@m9playz239 2 ай бұрын
Instead of showing this as a slide representation....can you upload a video directly how to make it by showing it as a hands on project? I am quite interested in this.
@TechMakerAI
@TechMakerAI 2 ай бұрын
Hi, there, I can certainly work on a hands-on video like that. Please subscribe to our channel so you will be notified when it is published online.
@m9playz239
@m9playz239 2 ай бұрын
@@TechMakerAI I did already subscribe you.
@inout3394
@inout3394 2 ай бұрын
Thx
@cletusmugabo4773
@cletusmugabo4773 2 ай бұрын
hello i finished installing all packages but on running the code it shows in the terminal listening but when i speak there the content is not captured its as though there is no input from me
@TechMakerAI
@TechMakerAI 2 ай бұрын
Please make sure your microphone is working first. You can use a third party app such as Zoom to check that. Then, if you still have issues, you can increase the duration to 1.0 at line "rec.adjust_for_ambient_noise(source, duration= 0.5)"
@ryeetzy2624
@ryeetzy2624 13 күн бұрын
maybe you didnt wake it up
@ryeetzy2624
@ryeetzy2624 13 күн бұрын
@@TechMakerAI I’m experiencing the same problem, it just listens and dont respond even after waking it up
@TechMakerAI
@TechMakerAI 13 күн бұрын
@@ryeetzy2624 It might be the case that your free credits have expired. Please download this file at github.com/techmakerai/Python-OpenAI-API-Voice-Chatbot/blob/main/test.py and run it on your computer to test whether your API is working or not. Please let us know if you have a response.
@ryeetzy2624
@ryeetzy2624 13 күн бұрын
@@TechMakerAI is it possible that it was already expired even though you just used it now?
@messaoudallalouche
@messaoudallalouche 2 ай бұрын
please sir explain me more how and where I can write GOOGLE_API_KEY and OPENAI_API_KEY
@TechMakerAI
@TechMakerAI 2 ай бұрын
I talked about adding new environment variables in my video from 2:48 s to 3:56 s. To add new system environment variables on Windows, you can also follow the steps here www.tenforums.com/tutorials/121664-set-new-user-system-environment-variables-windows.html
@messaoudallalouche
@messaoudallalouche 2 ай бұрын
@@TechMakerAI I got it thank you sir
@Akash-el4ls
@Akash-el4ls 3 ай бұрын
its listening and printing what its listened but not providing any outputs can you help again it went to listening
@TechMakerAI
@TechMakerAI 3 ай бұрын
This means that the ChatGPT is not responding to your request. Make sure you set the API key correctly. Then, make sure your free API credit is NOT expired. You can check it here platform.openai.com/usage. You will need sufficient credits to run this code.
@TechMakerAI
@TechMakerAI 3 ай бұрын
If your free credit is expired and you do not want to pay, you can follow my tutorial at kzbin.info/www/bejne/qonMequgrsZ4qs0 to build a similar voice chatbot with Google Gemini for "free".
@d4663r
@d4663r Ай бұрын
great video! However, I am having the same issue @akash described. I was able to validate my API by running a test on this sample script. If you get an output.mp3, the API works. You can also check to see if your usage for GPT and TTS is being used. Below is the snippet for testing. Make sure to replace my-key with your api key in quotes. After validating this, I am still not getting audio output. Any suggestions? @TechMakerAI from openai import OpenAI client = OpenAI(api_key="my-key") response = client.audio.speech.create( model="tts-1", voice="nova", input="Hello world! This is a streaming test.", ) response.stream_to_file("output.mp3")
@TechMakerAI
@TechMakerAI Ай бұрын
@d4663r, Hi, thanks. The code you provided will test the TTS part, but not the text generation part. I have uploaded a new file at github.com/techmakerai/Python-OpenAI-API-Voice-Chatbot/blob/main/test.py to test whether your API is working or not. Please run that and let us know if you have a response.
@ryeetzy2624
@ryeetzy2624 13 күн бұрын
@@TechMakerAI so basically, it's not free?
@sakshishruti4482
@sakshishruti4482 3 ай бұрын
I am not getting response from AI
@TechMakerAI
@TechMakerAI 3 ай бұрын
If you are running the same Python program from my GitHub page, you need to say the wake word "Jack" to wake up the program. Then, AI will respond to your questions.
@nidhipandey3791
@nidhipandey3791 3 ай бұрын
ModuleNotFoundError: No module named 'google' i am getting this error when i try to execute it. can somebody help me?
@TechMakerAI
@TechMakerAI 3 ай бұрын
Hi, have you installed the required Python packages for the project? For example, you need to run "pip install -q -U google-generativeai"
@nidhipandey3791
@nidhipandey3791 2 ай бұрын
@@TechMakerAI Thank you so much for responding, the issue was resolved, but i am having trouble in the text to speech part as the output text gets printed but is not spoken aloud.
@TechMakerAI
@TechMakerAI 2 ай бұрын
@@nidhipandey3791 Good job! Glad you resolved the issue early. For the text-to-speech issue, please try to use the second TTS engine by changing "openaitts = True" to "openaitts = False" at line 39.
@firmankrisnadi7248
@firmankrisnadi7248 Ай бұрын
​@@TechMakerAIplease any video tutorial to fix this issues
@firmankrisnadi7248
@firmankrisnadi7248 Ай бұрын
​@@TechMakerAIplease..any video tutorial to fix it
@taoyongqu8656
@taoyongqu8656 3 ай бұрын
In the line of 128 of your code va4.py, why there is google voice used, instead of OpenAI whisper or Python default voice recognizer as you mentioned in the video?
@TechMakerAI
@TechMakerAI 3 ай бұрын
During my test, this version from Google worked very well. It is almost "free" to use. The OpenAI whisper API version will consume your $5 credits from OpenAI. There are multiple recognition models in the "speech_recognition" lib. You can choose whichever works best for you.
@satyajamalla1429
@satyajamalla1429 3 ай бұрын
simple and nice video. can I have some voice recognition video
@TechMakerAI
@TechMakerAI 3 ай бұрын
Please subscribe to our channel as we have more videos coming up soon.
@max77vvxf5yvh
@max77vvxf5yvh 3 ай бұрын
Please make a review on Yachteria AI Model
@kweffilover5677
@kweffilover5677 3 ай бұрын
Please make vidéo how to do this in WordPress please
@TechMakerAI
@TechMakerAI 3 ай бұрын
Thank you for your feedback. Please subscribe to our channel as we have more AI videos coming up soon.
@ayanshariff9746
@ayanshariff9746 4 ай бұрын
Brother i need to reduce the response of the ai ...please reply asap
@TechMakerAI
@TechMakerAI 4 ай бұрын
Hi there, you can edit the code to limit the length of the response by adding the "max_output_tokens" option like this, response = model.generate_content(talk, stream=True, generation_config=genai.types.GenerationConfig( # Only one candidate for now. max_output_tokens=64) )
@ayanshariff9746
@ayanshariff9746 4 ай бұрын
Thank you so much ☺️ brother
@rohitshukla4088
@rohitshukla4088 4 ай бұрын
from openai import OpenAI Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name 'OpenAI' from 'openai' , showing this error , also its not define where to keep APi Key ??
@TechMakerAI
@TechMakerAI 4 ай бұрын
Hi, there, this error message means your system is missing the "openai" package. You can install it like this "pip install openai" as I mentioned on the GitHub page. Please check that page to install all other packages. Regarding the API key, I have added it as a system environment variable, and I talked about it at time = 3.14 s in the video (kzbin.info/www/bejne/oXacZqt3as-JjbMsi=OZdWFxL7_YXutcCo&t=192). If you want to add it to your Python program, you can do so by changing the line "client = OpenAI(api_key="this is your API key from OpenAI").
@MULTIVIDEOCHANNE
@MULTIVIDEOCHANNE 4 ай бұрын
bot-main\va4.py" Traceback (most recent call last): File "c:\Users\Basha\Downloads\talktome\Python-OpenAI-API-Voice-Chatbot-main\va4.py", line 4, in <module> from openai import OpenAI ImportError: cannot import name 'OpenAI' from 'openai' can u help solve this error which I Am encountering
@MULTIVIDEOCHANNE
@MULTIVIDEOCHANNE 4 ай бұрын
its done i did it thanks
@TechMakerAI
@TechMakerAI 4 ай бұрын
Great, this error means you need to install the openai package as I mentioned on the GitHub page
@LowFrameDuck
@LowFrameDuck 2 ай бұрын
​@@TechMakerAI I've got the same problem but i already have the openai package (ERROR "ImportError: cannot import name 'OpenAI' from 'openai' (C:Python\Python312\Lib\site-packages\openai\__init__.py) PS C:\Python-OpenAI-API-Voice-Chatbot-main>"
@TechMakerAI
@TechMakerAI 2 ай бұрын
@LowFrameDuck: If that is the case, I recommend that you create a Python virtual environment and then install the OpenAI package. After that, try to run the code in the virtual environment. Are you using Windows, Mac, or Linux?
@LowFrameDuck
@LowFrameDuck 2 ай бұрын
@@TechMakerAI Windows 10
@funnyprankforlaughter1388
@funnyprankforlaughter1388 4 ай бұрын
Hi sir your doing great Can you create video how to website or mobile phone
@TechMakerAI
@TechMakerAI 4 ай бұрын
Hi, thanks! Please subscribe our channel as we have more videos coming up.
@funnyprankforlaughter1388
@funnyprankforlaughter1388 4 ай бұрын
@@TechMakerAI am you fan ready.... Can you make same speech to speech with Gemini api .can run in local host or in any app
@TechMakerAI
@TechMakerAI 4 ай бұрын
@@funnyprankforlaughter1388 Do you mean a real-time voice cloning app?
@funnyprankforlaughter1388
@funnyprankforlaughter1388 4 ай бұрын
@@TechMakerAI like ....my students all kids ...5 year to 8 year ...so they can use and learn .i mean app or run website
@funnyprankforlaughter1388
@funnyprankforlaughter1388 4 ай бұрын
Can i have your email
@truongquangphuc
@truongquangphuc 4 ай бұрын
Does it support multi langluage?
@TechMakerAI
@TechMakerAI 4 ай бұрын
Hi there, I think it is possible to make it work with another language. At first, you need to ensure your language is supported by the speech recognizer. Please take a look here: github.com/Uberi/speech_recognition/blob/master/reference/library-reference.rst. The function used in my code is "recognizer_instance.recognize_google" which does support a lot of languages. Secondly, you need to make sure ChatGPT can understand your language. It can also translate one language from another. Finally, you need to make sure that the text-to-speech engine can speak your language. Please check this webpage for more information: stackoverflow.com/questions/66379488/pyttsx3-does-not-read-text-in-other-languages. You can also use other TTS engines. If ChatGPT cannot understand your language, then I have a new video in which I built a voice chatbot with Google's new AI model Gemini Pro which supports 38 languages. You can watch the new video here: kzbin.info/www/bejne/qonMequgrsZ4qs0.
@truongquangphuc
@truongquangphuc 4 ай бұрын
@@TechMakerAI thank you!
@ahmedsherif7732
@ahmedsherif7732 4 ай бұрын
please use the API_Key inside the code itself and run it because it does not work with me
@TechMakerAI
@TechMakerAI 4 ай бұрын
Thank you for the note! On Raspberry Pi or other Linux system, you can also edit your bash profile and add this line "export OPENAI_API_KEY='your-api-key-here' ". I added my API key to my bash profile file, and I was able to run the code without any issue.
@qswdefrgthjmnbgr
@qswdefrgthjmnbgr 4 ай бұрын
Traceback (most recent call last): File "C:\Users\Brinil john\OneDrive\Documents\Python-OpenAI-API-Voice-Chatbot\va4.py", line 171, in <module> main() File "C:\Users\Brinil john\OneDrive\Documents\Python-OpenAI-API-Voice-Chatbot\va4.py", line 106, in main mic = sr.Microphone() ^^^^^^^^^^^^^^^ File "C:\Users\Brinil john\OneDrive\Documents\Python-OpenAI-API-Voice-Chatbot\voice\Lib\site-packages\speech_recognition\__init__.py", line 81, in __init__ self.pyaudio_module = self.get_pyaudio() ^^^^^^^^^^^^^^^^^^ File "C:\Users\Brinil john\OneDrive\Documents\Python-OpenAI-API-Voice-Chatbot\voice\Lib\site-packages\speech_recognition\__init__.py", line 112, in get_pyaudio from distutils.version import LooseVersion ModuleNotFoundError: No module named 'distutils' can u help solve this error which I Am encountering
@TechMakerAI
@TechMakerAI 4 ай бұрын
Hi, there, it looks like your system does not have the 'distutils' module. If you are using Python 3.12 or newer, please try to install the "setuptools" package with pip like this: pip install setuptools.