kalliope-project / kalliope

Kalliope is a framework that will help you to create your own personal assistant.
https://kalliope-project.github.io/
GNU General Public License v3.0
1.71k stars 229 forks source link

Using Pocupine since Snowboy's shutdown #651

Closed Foucauld closed 3 years ago

Foucauld commented 3 years ago

Hi, I'm trying to use a porcupine keyword since Snowboy shuted down their servers. The issue I have is that using a keyword generated with porcupine 1.9, I'm having the following issue :

Press Ctrl+C for stopping
Starting order signal
/usr/local/lib/python3.7/dist-packages/cffi-1.14.4-py3.7-linux-armv7l.egg/cffi/cparser.py:165: UserWarning: Global variable 'stderr' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
  "(usually 'extern')" % (decl.name,))
/usr/local/lib/python3.7/dist-packages/cffi-1.14.4-py3.7-linux-armv7l.egg/cffi/cparser.py:165: UserWarning: Global variable '__stderrp' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
  "(usually 'extern')" % (decl.name,))
I'm ready
[ERROR] keyword file belongs to a different version of the library
[ERROR] loading keyword file #0 failed with 'INVALID_ARGUMENT'
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/home/pi/Music/testKalioppe/kalliope_starter_en/resources/trigger/porcupine/porcupinedecoder.py", line 100, in run
    sensitivities=self._sensitivities)
  File "/home/pi/Music/testKalioppe/kalliope_starter_en/resources/trigger/porcupine/porcupinebinding.py", line 116, in __init__
    raise self._PICOVOICE_STATUS_TO_EXCEPTION[status]('Initialization failed')
ValueError: Initialization failed

Waiting for trigger detection

I do not get if this error comes from my Kalliope version or the keyword version. For information I imported the kalliope_starter_en project (the french one doesn't seem to wake on the word Kalliope with the default configuration)

corus87 commented 3 years ago

I guess the library provided by the trigger is outdated and need to be updated as this error indicate: [ERROR] keyword file belongs to a different version of the library.

The lib needs to match the keyword version or it won't work. I will try to update the trigger in the next days to be compatible with porcupine 1.9 keywords.

Foucauld commented 3 years ago

Hello, have you managed to figure out how to make the trigger compatible with porcupine 1.9 keywords?

corus87 commented 3 years ago

I'm sorry, I'm a bit busy lately and to be honest I forget this issue. But I will try to look into it this evening.

corus87 commented 3 years ago

@Foucauld I've updated the trigger to support v1.9 keywords. Give it a try and when everything works, we close this one.

Sispheor commented 3 years ago

I close this one as it's a duplicated of #630