Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Scitech123 opened this issue Oct 29, 2023 · 3 comments

Comments

@Scitech123
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

Scitech123 commented Oct 30, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants