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

Value Error from Pico Porcupine #35

Open
spatrickhope opened this issue Oct 28, 2024 · 3 comments
Open

Value Error from Pico Porcupine #35

spatrickhope opened this issue Oct 28, 2024 · 3 comments

Comments

@spatrickhope
Copy link

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?

@Argetlam3
Copy link

Argetlam3 commented Oct 28, 2024 via email

@spatrickhope
Copy link
Author

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
)

@DevMiser
Copy link
Owner

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”.

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

3 participants