Giter Site home page Giter Site logo

wyoming-porcupine's Introduction

Wyoming Porcupine

Wyoming protocol server for the porcupine wake word detection system.

This is an experimental fork of rhasspy/wyoming-porcupine1 that uses the latest version (v3.0) of porcupine.

Advantages of v3 compared to v1:

  • Improved accuracy
  • More supported languages and pre-trained wake words
  • Ability to use custom wake words

Drawbacks:

  • An access token from console.picovoice.ai is needed
  • Each token can be used on only 3 machines per month

Home Assistant Add-on

Show add-on

Source

wyoming-porcupine's People

Contributors

chatziko avatar synesthesiam avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

wyoming-porcupine's Issues

Picovoice Error (code `00000136`)

Hi, I have the following error:

DEBUG:root:Namespace(uri='tcp://0.0.0.0:10401', data_dir=PosixPath('/usr/src/.venv/lib/python3.11/site-packages/wyoming_porcupine/data'), system='linux', sensitivity=0.5, access_key='censored', custom_keyword_dir=['/custom'], debug=True)

INFO:root:Ready

DEBUG:root:Client connected: 135089827551418

DEBUG:root:Loading Carlos for es

DEBUG:root:Client disconnected: 135089827551418

ERROR:asyncio:Task exception was never retrieved

future: <Task finished name='Task-5' coro=<AsyncEventHandler.run() done, defined at /usr/src/.venv/lib/python3.11/site-packages/wyoming/server.py:28> exception=PorcupineInvalidArgumentError('Initialization failed')>

Traceback (most recent call last):

File "/usr/src/.venv/lib/python3.11/site-packages/wyoming/server.py", line 35, in run

 if not (await self.handle_event(event)):


         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/src/.venv/lib/python3.11/site-packages/wyoming_porcupine/main.py", line 236, in handle_event

 await self._load_keyword(detect.names[0])

File "/usr/src/.venv/lib/python3.11/site-packages/wyoming_porcupine/main.py", line 298, in _load_keyword

 self.detector = await self.state.get_porcupine(


                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/src/.venv/lib/python3.11/site-packages/wyoming_porcupine/main.py", line 79, in get_porcupine

 porcupine = pvporcupine.create(


             ^^^^^^^^^^^^^^^^^^^

File "/usr/src/.venv/lib/python3.11/site-packages/pvporcupine/_factory.py", line 69, in create

 return Porcupine(


        ^^^^^^^^^^

File "/usr/src/.venv/lib/python3.11/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 has incorrect format or belongs to a different platform.

[1] Picovoice Error (code 00000136)

[2] Loading keyword file at /custom/Carlos_es_linux_v3_0_0.ppn failed with INVALID_ARGUMENT.

I am running this into a container if it makes any difference. Also if i remove - "--wake-word-name" - "Carlos" the default Porcupine wake word works fine

Upgrade to v3.0.0

Hi, is there any way that you upgrade your implementation to porcupine v3.0.0?

Best regards,
joie96

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.