Value Error from Pico Porcupine
Install seemed to work well. Using a Pi4b with the legacy 64bit software download. I am getting this error upon launching the software:
Traceback (most recent call last):
File "/home/pi/DaVinci/DaVinci.py", line 302, in
Any idea what is happening here?
Could you share the keywords list with us? Should be near line 153
On Mon, 28 Oct 2024 at 17:29, spatrickhope @.***> wrote:
Install seemed to work well. Using a Pi4b with the legacy 64bit software download. I am getting this error upon launching the software:
Traceback (most recent call last): File "/home/pi/DaVinci/DaVinci.py", line 302, in wake_word() File "/home/pi/DaVinci/DaVinci.py", line 153, in wake_word porcupine = pvporcupine.create(keywords=keywords, File "/home/pi/.local/lib/python3.9/site-packages/pvporcupine/_factory.py", line 59, in create raise ValueError( ValueError: One or more keywords are not available by default. Available default keywords are:\nterminator, blueberry, jarvis, grapefruit, americano, DaVinci.py, porcupine, picovoice, hey siri, computer, pico clock, grasshopper, alexa, bumblebee, hey google, hey barista, ok google
Any idea what is happening here?
— Reply to this email directly, view it on GitHub https://github.com/DevMiser/DaVinci/issues/35, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGA4F2CSXVSKQDQFNWWFD4TZ523GDAVCNFSM6AAAAABQYNXITWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYTSNRZGY3DINY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Could you share the keywords list with us? Should be near line 153 … On Mon, 28 Oct 2024 at 17:29, spatrickhope @.> wrote: Install seemed to work well. Using a Pi4b with the legacy 64bit software download. I am getting this error upon launching the software: Traceback (most recent call last): File "/home/pi/DaVinci/DaVinci.py", line 302, in wake_word() File "/home/pi/DaVinci/DaVinci.py", line 153, in wake_word porcupine = pvporcupine.create(keywords=keywords, File "/home/pi/.local/lib/python3.9/site-packages/pvporcupine/_factory.py", line 59, in create raise ValueError( ValueError: One or more keywords are not available by default. Available default keywords are:\nterminator, blueberry, jarvis, grapefruit, americano, DaVinci.py, porcupine, picovoice, hey siri, computer, pico clock, grasshopper, alexa, bumblebee, hey google, hey barista, ok google Any idea what is happening here? — Reply to this email directly, view it on GitHub <#35>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGA4F2CSXVSKQDQFNWWFD4TZ523GDAVCNFSM6AAAAABQYNXITWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYTSNRZGY3DINY . You are receiving this because you are subscribed to this thread.Message ID: @.>
I started with the default values in line 153 and recieved this error. But then I changed these values as well as the sensitivities 3 lines below to see if those numbers had to match. I figured maybe that was where the Value error was from. Do these numbers have to match with the keywords? Right now I have tried to simplify this to just have a single keyword, but would like to increase these a lot so that my skeleton reacts to almost anything.
keywords = ["skeleton"] porcupine = pvporcupine.create(keywords=keywords, access_key=pv_access_key, sensitivities=[1,], #from 0 to 1.0 - a higher number reduces the miss rate at the cost of increased false alarms )
I recommend retrying instruction 6 under "Prepare Your Raspberry Pi 4 to Run this Program" in the instructions. Please note that there are two blank spaces in the command in that instruction – one between "mv" and "/home" and one between ".ppn" and "/home". Be sure to include them. Also, there is no space between “site-” and “packages”.