Picroft wake word doesn't work after yesterday's outage

I know it seems to be a weird coincidence (it probably is), but this happened-

  1. Mycroft started asking me to pair. This is when I checked chat.mycroft.ai and found out about the Redis downtime.
  2. I turned off Mycroft so that it doesnt keep on requesting me to pair. I went to sleep.
  3. Woke up in the morning, the Redis issue was reported fixed.
  4. Switched on Mycroft, it asked me to pair. I went to home.mycroft.ai, deleted the existing device and added the “new” one back.
  5. Mic input doesn’t seem to work. Mic Level shows no activity when I login to the Pi3.

pi@picroft:~ $ tail -5 /etc/pulse/default.pa 

### Make some devices default
set-default-sink alsa_output.0.analog-stereo.monitor
set-default-source alsa_input.usb-Microsoft_Microsoft___LifeCam_HD-3000-02-HD3000.analog-mono

pi@picroft:~ $ pactl list sources short 
0       alsa_input.usb-Microsoft_Microsoft___LifeCam_HD-3000-02-HD3000.analog-mono      module-alsa-card.c      s16le 1ch 44100Hz       SUSPENDED
1       alsa_output.0.analog-stereo.monitor     module-alsa-card.c      s16le 2ch 44100Hz       SUSPENDED

sudo reboot didn’t help.

mycroft-speech-client.log has this-

12:59:10.065 - root - INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
12:59:10.346 - root - INFO - Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
12:59:11.027 - mycroft.configuration.config:load_local:128 - DEBUG - Configuration /usr/local/lib/python2.7/site-packages/mycroft_core-18.2.2-py2.7.egg/mycroft/configuration/mycroft.conf loaded
12:59:11.041 - mycroft.configuration.config:load_local:128 - DEBUG - Configuration /usr/local/lib/python2.7/site-packages/mycroft_core-18.2.2-py2.7.egg/mycroft/configuration/mycroft.conf loaded
12:59:11.052 - mycroft.configuration.config:load_local:128 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
12:59:11.065 - mycroft.configuration.config:load_local:128 - DEBUG - Configuration /home/mycroft/.mycroft/mycroft.conf loaded
12:59:11.083 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
12:59:12.214 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 "GET /v1/device/e1955510-64d9-46d2-a755-1218240d2760 HTTP/1.1" 200 411
12:59:12.246 - mycroft.configuration.config:load_local:128 - DEBUG - Configuration /usr/local/lib/python2.7/site-packages/mycroft_core-18.2.2-py2.7.egg/mycroft/configuration/mycroft.conf loaded
12:59:12.256 - mycroft.configuration.config:load_local:128 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
12:59:12.265 - mycroft.configuration.config:load_local:128 - DEBUG - Configuration /home/mycroft/.mycroft/mycroft.conf loaded
12:59:12.273 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
12:59:13.570 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 "GET /v1/device/e1955510-64d9-46d2-a755-1218240d2760/setting HTTP/1.1" 200 2932
12:59:13.595 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
12:59:17.776 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 "GET /v1/device/e1955510-64d9-46d2-a755-1218240d2760/location HTTP/1.1" 200 871
12:59:17.827 - mycroft.configuration.config:load_local:128 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
12:59:17.834 - mycroft.configuration.config:load_local:128 - DEBUG - Configuration /home/mycroft/.mycroft/mycroft.conf loaded
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.front.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround40.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
12:59:18.911 - mycroft.client.speech.listener:create_wake_word_recognizer:239 - INFO - creating wake word engine
12:59:18.917 - mycroft.client.speech.hotword_factory:create_hotword:268 - INFO - creating hey mycroft
12:59:18.944 - mycroft.client.speech.hotword_factory:__init__:125 - INFO - Found precise executable: /home/mycroft/.mycroft/precise/precise-stream/precise-stream
12:59:18.970 - mycroft.client.speech.listener:create_wakeup_recognizer:257 - INFO - creating stand up word engine
12:59:18.975 - mycroft.client.speech.hotword_factory:create_hotword:268 - INFO - creating wake up
12:59:19.324 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
12:59:20.428 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 "GET /v1/device/e1955510-64d9-46d2-a755-1218240d2760 HTTP/1.1" 200 411
12:59:20.484 - mycroft.messagebus.client.ws:on_open:58 - INFO - Connected
12:59:22.536 - mycroft.client.speech.mic:listen:523 - DEBUG - Waiting for wake word...
[2695] Failed to execute script stream
Traceback (most recent call last):
  File "precise/scripts/stream.py", line 52, in <module>
  File "precise/scripts/stream.py", line 40, in main
  File "precise/network_runner.py", line 79, in __init__
  File "precise/network_runner.py", line 30, in __init__
  File "precise/network_runner.py", line 42, in load_graph
  File "google/protobuf/message.py", line 185, in ParseFromString
  File "google/protobuf/internal/python_message.py", line 1083, in MergeFromString
  File "google/protobuf/internal/python_message.py", line 1120, in InternalParse
  File "google/protobuf/internal/decoder.py", line 610, in DecodeRepeatedField
google.protobuf.message.DecodeError: Truncated message.
Exception in thread Thread-14:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/site-packages/mycroft_core-18.2.2-py2.7.egg/mycroft/client/speech/hotword_factory.py", line 220, in check_stdout
    self.has_found = float(line) > 0.5
ValueError: could not convert string to float: 

12:59:36.795 - mycroft.client.speech.mic:listen:523 - DEBUG - Waiting for wake word...
12:59:36.831 - mycroft.client.speech.mic:listen:523 - DEBUG - Waiting for wake word...
12:59:36.875 - mycroft.client.speech.mic:listen:523 - DEBUG - Waiting for wake word...
12:59:36.905 - mycroft.client.speech.mic:listen:523 - DEBUG - Waiting for wake word...

Interesting, if I change the wake word to Hey Jarvis, the Mic Input indicator starts working and I can now use Mycroft. But if I change it back to Hey Mycroft, the Mic Input indicator stops working, my wake word isn’t detected and this log is shown-

13:10:10.100 - SKILLS - DEBUG - {"type": "1017122086:TimeSkillupdate_display", "data": {}, "context": null}
[3487] Failed to execute script stream
Traceback (most recent call last):
File "precise/scripts/stream.py", line 52, in <module>
File "precise/scripts/stream.py", line 40, in main
File "precise/network_runner.py", line 79, in __init__
File "precise/network_runner.py", line 30, in __init__
File "precise/network_runner.py", line 42, in load_graph
File "google/protobuf/message.py", line 185, in ParseFromString
File "google/protobuf/internal/python_message.py", line 1083, in MergeFromString
File "google/protobuf/internal/python_message.py", line 1120, in InternalParse
File "google/protobuf/internal/decoder.py", line 610, in DecodeRepeatedField
google.protobuf.message.DecodeError: Truncated message.
13:10:16.378 - mycroft.client.speech.hotword_factory:check_stdout:220 - DEBUG -
Exception in thread Thread-34:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/site-packages/mycroft_core-18.2.2-py2.7.egg/mycroft/client/speech/hotword_factory.py", line 221, in check_stdout
ValueError: could not convert string to float:

13:10:16.389 - mycroft.client.speech.mic:listen:523 - DEBUG - Waiting for wake word...```

So, the Redis outage would have affected pairing, but would not have affected the Wake Word at all. The output you’ve provided is very useful for debugging - thank you. hotword_factory.py is used in Wake Word detection.

Are you able to provide a screenshot of this screen from home.mycroft.ai:
ttps://home.mycroft.ai/#/setting/advanced

In particular I want to check your Wake Word settings.

Kind regards,
Kathy

Hi @KathyReid

I was using it with Hey Jarvis since I made the original post. Today when I switched to Hey Mycroft to get you a screenshot and realized it has started working. Happened on its own, I didn’t have to do anything.

1 Like

Thanks for confirming, glad to hear it’s working :slight_smile: