MycroftAI / mycroft-precise

A lightweight, simple-to-use, RNN wake word listener
Apache License 2.0
818 stars 228 forks source link

Precise exceeds loading timeout on RPi 3B+ #213

Open krisgesling opened 2 years ago

krisgesling commented 2 years ago

Describe the bug From techoneer on Mycroft Chat:

I noticed that ever since the latest auto update, my picroft on a Rpi 3B+ seems to fail to use precise listener. It tries to use it but then throws a "precise took too long to start" error in the logs and falls back to pocketsphinx which is not very good. It still seems to do this on a fresh install that autoupdated.

The only config changes were to the play commands to get USB audio to work.

Expected behavior Precise should load within the hotword factory timeout of 10 seconds - or we need to extend that timeout.

Log files This is from the voice.log. Seems like it actually loads initially soon after boot, then again 2 minutes later but that time it gives the "taking too long" message after 10 seconds and loads pocketsphinx instead

2021-09-01 07:16:43.031 | INFO     |   735 | mycroft.client.speech.listener:create_wake_word_recognizer:328 | Creating wake word engine
2021-09-01 07:16:43.034 | INFO     |   735 | mycroft.client.speech.listener:create_wake_word_recognizer:351 | Using hotword entry for hey mycroft
2021-09-01 07:16:43.044 | INFO     |   735 | mycroft.client.speech.hotword_factory:load_module:500 | Loading "hey mycroft" wake word via precise
2021-09-01 07:16:58.798 | INFO     |   735 | mycroft.client.speech.listener:create_wakeup_recognizer:365 | creating stand up word engine
2021-09-01 07:16:58.802 | INFO     |   735 | mycroft.client.speech.hotword_factory:load_module:500 | Loading "wake up" wake word via pocketsphinx
2021-09-01 07:16:59.338 | INFO     |   735 | __main__:on_ready:179 | Speech client is ready.
2021-09-01 07:18:32.540 | WARNING  |   735 | mycroft.client.speech.listener:run:88 | Audio contains no data.
2021-09-01 07:18:32.963 | INFO     |   735 | mycroft.client.speech.listener:create_wake_word_recognizer:328 | Creating wake word engine
2021-09-01 07:18:32.968 | INFO     |   735 | mycroft.client.speech.listener:create_wake_word_recognizer:351 | Using hotword entry for hey mycroft
2021-09-01 07:18:32.973 | INFO     |   735 | mycroft.client.speech.hotword_factory:load_module:500 | Loading "hey mycroft" wake word via precise
2021-09-01 07:18:42.983 | INFO     |   735 | mycroft.client.speech.hotword_factory:load_module:535 | precise is taking too long to load
2021-09-01 07:18:42.987 | INFO     |   735 | mycroft.client.speech.hotword_factory:load_module:500 | Loading "hey mycroft" wake word via pocketsphinx
2021-09-01 07:18:43.256 | INFO     |   735 | mycroft.client.speech.listener:create_wakeup_recognizer:365 | creating stand up word engine
2021-09-01 07:18:43.258 | INFO     |   735 | mycroft.client.speech.hotword_factory:load_module:500 | Loading "wake up" wake word via pocketsphinx

Environment (please complete the following information):