-
Notifications
You must be signed in to change notification settings - Fork 101
Porcupine not initializing #213
Comments
I faced the same issue and got it working (again) by using the library and ppn files from https://github.com/Picovoice/porcupine instead of the ones shipped with Rhasspy 2.4.20. My profile.json now contains:
See https://github.com/Picovoice/porcupine/blob/master/lib/README.md for the correct library file and https://github.com/Picovoice/porcupine/tree/master/resources/keyword_files/raspberry-pi for the keyword files available. |
The files shipped with
@kroka Can you see any problem with the files linked in the
|
@Tooa, I have a Raspberry Pi 4 (with Rhasspy 2.4.20) and the Since working files are already listed in the defaults.json: does Rhasspy choose the wrong architecture in my case? Actually I do not exactly know what PPN file I have in |
Thanks for reaching back.
From what I understand is that Looks like this function is responsible for the download of the entries from the |
Hi @Tooa, I've triggered a fresh download via the API (
But now I finally have the correct files:
It also detected the correct architecture Line 550 in 3c53cd0
I cannot exactly say why I had wrong files initially. It could be a leftover from my initial Rhasspy installation for which I used the Docker image. In the meanwhile I've switched to the plain Python venv. @moritzschaefer how is it working for you? From my side we could close this issue. |
ignore that file might exist already, change motivated by synesthesiam#213
Yes, we can also close from my side. I am at the moment fighting with
Raspberry Pi4 and NixOS and would reopen if I encounter the same problem on
the new system.
…On Fri, 22 May 2020 at 14:22, kroka ***@***.***> wrote:
Hi @Tooa <https://github.com/Tooa>,
I've triggered a fresh download via the API (POST
"<rhasspy>/api/download-profile?delete=true), but had to manually delete
the Porcupine files as they have not been deleted by the delete option:
May 22 12:47:29 raspberrypi rhasspy[4296]: DEBUG:RhasspyCore:Deleting download cache at /home/pi/.config/rhasspy/profiles/de/download
May 22 12:47:29 raspberrypi rhasspy[4296]: DEBUG:RhasspyCore:Using cached /home/pi/.config/rhasspy/profiles/de/porcupine/porcupine_params.pv for porcupine/porcupine_params.pv
May 22 12:47:29 raspberrypi rhasspy[4296]: DEBUG:RhasspyCore:Using cached /home/pi/.config/rhasspy/profiles/de/porcupine/libpv_porcupine.so for porcupine/libpv_porcupine.so
May 22 12:47:29 raspberrypi rhasspy[4296]: DEBUG:RhasspyCore:Using cached /home/pi/.config/rhasspy/profiles/de/porcupine/porcupine.ppn for porcupine/porcupine.ppn
But now I finally have the correct files:
May 22 13:08:25 raspberrypi rhasspy[4296]: DEBUG:RhasspyCore:Deleting download cache at /home/pi/.config/rhasspy/profiles/de/download
May 22 13:08:25 raspberrypi rhasspy[4296]: DEBUG:RhasspyCore:Downloading https://github.com/Picovoice/porcupine/raw/v1.7/lib/common/porcupine_params.pv to /home/pi/.config/rhasspy/profiles/de/porcupine/porcupine_params.pv
May 22 13:08:25 raspberrypi rhasspy[4296]: DEBUG:RhasspyCore:Downloading https://github.com/Picovoice/porcupine/raw/v1.7/lib/raspberry-pi/cortex-a53/libpv_porcupine.so to /home/pi/.config/rhasspy/profiles/de/porcupine/libpv_porcupine.so
May 22 13:08:25 raspberrypi rhasspy[4296]: DEBUG:RhasspyCore:Downloading https://github.com/Picovoice/porcupine/raw/v1.7/resources/keyword_files/raspberry-pi/porcupine_raspberry-pi.ppn to /home/pi/.config/rhasspy/profiles/de/porcupine/porcupine.ppn
May 22 13:08:26 raspberrypi rhasspy[4296]: DEBUG:RhasspyCore:Downloaded /home/pi/.config/rhasspy/profiles/de/porcupine/libpv_porcupine.so
May 22 13:08:26 raspberrypi rhasspy[4296]: DEBUG:RhasspyCore:Downloaded /home/pi/.config/rhasspy/profiles/de/porcupine/porcupine.ppn
May 22 13:08:27 raspberrypi rhasspy[4296]: DEBUG:RhasspyCore:Downloaded /home/pi/.config/rhasspy/profiles/de/porcupine/porcupine_params.pv
It also detected the correct architecture armv7l for my Pi via
https://github.com/synesthesiam/rhasspy/blob/3c53cd0236a397a4069f84d12766e786cec3cb89/rhasspy/core.py#L550
I cannot exactly say why I had wrong files initially. It could be a
leftover from my initial Rhasspy installation for which I used the Docker
image. In the meanwhile I've switched to the plain Python venv.
@moritzschaefer <https://github.com/moritzschaefer> how is it working for
you? From my side we could close this issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#213 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUWXLCU6UP6J5FQVT3TBSDRSZVA3ANCNFSM4MQBUMTQ>
.
--
Moritz Schäfer
ETH Zurich
Department of Biology
Otto-Stern-Weg 7
8093 Zürich, Switzerland
*[email protected] <[email protected]>**
<http://www.bsse.ethz.ch>*
|
On my RPi 3B+, I don't get Porcupine to work.
This is my config:
Here is the error output of rhasspy:
Is there a way to get some debug output from porcupine directly?
Of note, snowboy works!
The text was updated successfully, but these errors were encountered: