DevMiser / DaVinci

DaVinci - The ChatGPT AI Virtual Assistant
175 stars 22 forks source link

Picovoice status to exception; keyword file 2.2 v 3.0; and wake word error #17

Open Scitech123 opened 1 year ago

Scitech123 commented 1 year ago

Excellent instructions. I'm hung up on just these few things. Any suggestions? I'm adding this into my CM4 XGO-lite Robot Kit V2 in hopes of making the robot intelligent =)

pi@raspberrypi:~ $ cd /home/pi/DaVinci pi@raspberrypi:~/DaVinci $ python3 DaVinci.py Traceback (most recent call last): File "/home/pi/DaVinci/DaVinci.py", line 295, in wake_word() File "/home/pi/DaVinci/DaVinci.py", line 146, in wake_word porcupine = pvporcupine.create(keywords=["computer", "jarvis", "DaVinci",], File "/home/pi/.local/lib/python3.9/site-packages/pvporcupine/_factory.py", line 69, in create return Porcupine( File "/home/pi/.local/lib/python3.9/site-packages/pvporcupine/_porcupine.py", line 198, in init raise self._PICOVOICE_STATUS_TO_EXCEPTION[status]( pvporcupine._porcupine.PorcupineInvalidArgumentError: Initialization failed: [0] Keyword file (.ppn) file belongs to a different version of the library. File is 2.2.0 while library is 3.0.0. [1] Loading keyword file at /home/pi/.local/lib/python3.9/site-packages/pvporcupine/resources/keyword_files/raspberry-pi/DaVinci_raspberry-pi.ppn failed with INVALID_ARGUMENT.

DevMiser commented 1 year ago

That sounds like a great project! I would like to see how it comes out.

PicoVoice updated the Porcupine library from 2.2.0 to 3.0.0 a couple of days ago. I just now uploaded a new version of the keyword file, DaVinci_raspberry_pi.ppn, that is compatible with 3.0.0. Use that new file and everything should work.

Scitech123 commented 1 year ago

Thank you so much for making that update to the library! Everything is working fine as you can see in this picture. Next Q for you: Note that the GPT thinks we are a couple years behind lol. I have another question for you, is there an easy modification to where I can connect this is my specific ChatGPT account? I know we are already using the API, but it's not really pinging the latest and greatest it seems, there's that disconnect such that via my web access to ChatGPT, the computer gets the date correct. It would also be beneficial if I could link with GPT 4 instead. Any ideas to hammer that out?

Once I get this tuned up, the next task will be to make the XGO2 robot's mic and speaker perform the functions. At this time, only raspberrypi is talking and listening via RealVNC access.. the robot its self isn't performing as DaVinci just yet.

davinci working chatpgt3 5 Screenshot 2023-10-29 150501

Scitech123 commented 1 year ago

Getting a new error today: Traceback (most recent call last): File "/home/pi/DaVinci/DaVinci.py", line 276, in o = create( File "/home/pi/.local/lib/python3.9/site-packages/pvleopard/_factory.py", line 40, in create return Leopard( File "/home/pi/.local/lib/python3.9/site-packages/pvleopard/_leopard.py", line 158, in init raise self._PICOVOICE_STATUS_TO_EXCEPTION[status]() pvleopard._leopard.LeopardActivationRefusedError


(program exited with code: 1) Press return to continue

On Sun, Oct 29, 2023 at 3:43 AM DevMiser @.***> wrote:

That sounds like a great project! I would like to see how it comes out.

PicoVoice updated the Porcupine library from 2.2.0 to 3.0.0 a couple of days ago. I just now uploaded a new version of the keyword file, DaVinci_raspberry_pi.ppn, that is compatible with 3.0.0. Use that new file and everything should work.

— Reply to this email directly, view it on GitHub https://github.com/DevMiser/DaVinci/issues/17#issuecomment-1784024445, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDS3HZ4MMF2FLY3OM7IX4U3YBYCIPAVCNFSM6AAAAAA6UQQKD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBUGAZDINBUGU . You are receiving this because you authored the thread.Message ID: @.***>

--

Love Science & Technology LLC

2771 Monument Rd. STE 29-312

Jacksonville, FL 32225

This email message (including attachments) contains information which may be confidential and/or legally privileged. Unless you are the intended recipient, you may not use, copy or disclose to anyone the message or any information contained in the message or from any attachments that were sent with this email, and If you have received this email message in error, please advise the sender by email, and delete the message. Unauthorized disclosure and/or use of information contained in this email may result in civil and criminal liability.