Thank you very much it worked on raspberry pi 3 Please pay attention to the quotation marks client = OpenAI(api_key="this is your API key")
@TechMakerAI11 күн бұрын
Glad it is working on your RPi 3. Thank you for your feedback!
@ryeetzy26246 ай бұрын
can you further explain the python virtual environment?
@ryeetzy26246 ай бұрын
how did you enable the venv
@TechMakerAI6 ай бұрын
Please take a look at this document: docs.python.org/3/library/venv.html
@ryeetzy26246 ай бұрын
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.
@TechMakerAI6 ай бұрын
Hi, I have a new video about this topic. It will be online very soon.
@jeffreyhao13436 ай бұрын
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
@TechMakerAI6 ай бұрын
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.
@ahmedsherif773211 ай бұрын
please use the API_Key inside the code itself and run it because it does not work with me
@TechMakerAI11 ай бұрын
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.
@ADOPLAZ4 ай бұрын
Bro will it work in raspberry Pi zero
@TechMakerAI4 ай бұрын
@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.
@ADOPLAZ4 ай бұрын
@@TechMakerAI thanks bro, It is for my school project