Error with test.py

when i run mycroft he non listen… i ran unittes and i have this trouble help to understand what happend???

============ 2 failed, 431 passed, 5 skipped, 232 warnings in 110.03s (0:01:50) ==============
Exception in thread Thread-47:
Traceback (most recent call last):
File “/usr/lib/python3.9/threading.py”, line 954, in _bootstrap_inner
self.run()
File “/usr/lib/python3.9/threading.py”, line 892, in run
self._target(*self._args, **self._kwargs)
File “/home/dani/Documenti/mycroft-core/.venv/lib/python3.9/site-packages/precise_runner/runner.py”, line 192, in _handle_predictions
chunk = self.stream.read(self.chunk_size // self.read_divisor)
File “/home/dani/Documenti/mycroft-core/.venv/lib/python3.9/site-packages/precise_runner/runner.py”, line 64, in get_prediction
self.proc.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
Exception in thread Thread-18:
Traceback (most recent call last):
File “/usr/lib/python3.9/threading.py”, line 954, in _bootstrap_inner
self.run()
File “/usr/lib/python3.9/threading.py”, line 892, in run
self._target(*self._args, **self._kwargs)
File “/home/dani/Documenti/mycroft-core/.venv/lib/python3.9/site-packages/precise_runner/runner.py”, line 192, in _handle_predictions
chunk = self.stream.read(self.chunk_size // self.read_divisor)
File “/home/dani/Documenti/mycroft-core/.venv/lib/python3.9/site-packages/precise_runner/runner.py”, line 64, in get_prediction
self.proc.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
Exception in thread Thread-13:
Traceback (most recent call last):
File “/usr/lib/python3.9/threading.py”, line 954, in _bootstrap_inner
self.run()
File “/usr/lib/python3.9/threading.py”, line 892, in run
self._target(*self._args, **self._kwargs)
File “/home/dani/Documenti/mycroft-core/.venv/lib/python3.9/site-packages/precise_runner/runner.py”, line 192, in _handle_predictions
chunk = self.stream.read(self.chunk_size // self.read_divisor)
File “/home/dani/Documenti/mycroft-core/.venv/lib/python3.9/site-packages/precise_runner/runner.py”, line 64, in get_prediction
self.proc.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe
Exception in thread Thread-8:
Traceback (most recent call last):
File “/usr/lib/python3.9/threading.py”, line 954, in _bootstrap_inner
self.run()
File “/usr/lib/python3.9/threading.py”, line 892, in run
self._target(*self._args, **self._kwargs)
File “/home/dani/Documenti/mycroft-core/.venv/lib/python3.9/site-packages/precise_runner/runner.py”, line 192, in _handle_predictions
chunk = self.stream.read(self.chunk_size // self.read_divisor)
File “/home/dani/Documenti/mycroft-core/.venv/lib/python3.9/site-packages/precise_runner/runner.py”, line 64, in get_prediction
self.proc.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe

thankss :slight_smile:

Hi there,

We have a Wake Word Troubleshooting guide which would be a better start to diagnose what might be wrong with the wake word detection:
https://mycroft-ai.gitbook.io/docs/using-mycroft-ai/troubleshooting/wake-word-troubleshooting

Is this running on an x86 system (eg desktop or laptop) or an ARM based device like a Raspberry Pi?
If you don’t have AVX on your system then Precise will not work without a custom version of TensorFlow but from the other thread it sounds like you’re already looking at PocketSphinx.

1 Like

i installed in Ubuntu 64x.Notebook… mic function ok…i see level on cli window in when i talk but he not listen i change language on italian with autoconfig possible bug???

I am experiencing the exact same issue.

I’ve installed onto Armbian. ./start-mycroft.sh audiotest passes

When running mycroft in CLI mode, I see that the mic level recognizes that I am speaking, but, no intent dialog is taken or interpreted.

I’ve attempted the troubleshooting guide which @gez-mycroft mentions, to no avail.

The running version of mycroft is the latest version :

/var/log/mycroft/skills.log:2023-04-29 16:28:47.538 | INFO     | 514805 | mycroft.skills.skill_loader:load:185 | ATTEMPTING TO LOAD SKILL: mycroft-version-checker.mycroftai
/var/log/mycroft/skills.log:2023-04-29 16:28:47.562 | INFO     | 514805 | mycroft.skills.settings:get_local_settings:83 | /home/aburkert/.config/mycroft/skills/mycroft-version-checker.mycroftai/settings.json
/var/log/mycroft/skills.log:2023-04-29 16:28:47.710 | INFO     | 514805 | mycroft.skills.skill_loader:_communicate_load_status:344 | Skill mycroft-version-checker.mycroftai loaded successfully
/var/log/mycroft/skills.log:2023-04-29 16:28:49.034 | INFO     | 514805 | VersionCheckerSkill | Current version: [21, 2, 2]

The above output taken from skills.log, after typing check version into the CLI after launching ./start-mycroft.sh debug

On looking at voice.log, startup churns nicely up to a point, then, throws errors like that posted by the OP :

ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM surround71
2023-04-23 10:26:14.895 | INFO     | 153253 | mycroft.client.speech.listener:create_wake_word_recognizer:328 | Creating wake word engine
2023-04-23 10:26:14.898 | INFO     | 153253 | mycroft.client.speech.listener:create_wake_word_recognizer:351 | Using hotword entry for hey mycroft
2023-04-23 10:26:14.902 | INFO     | 153253 | mycroft.client.speech.hotword_factory:load_module:500 | Loading "hey mycroft" wake word via precise
2023-04-23 10:26:16.538 | INFO     | 153253 | mycroft.client.speech.listener:create_wakeup_recognizer:365 | creating stand up word engine
2023-04-23 10:26:16.540 | INFO     | 153253 | mycroft.client.speech.hotword_factory:load_module:500 | Loading "wake up" wake word via pocketsphinx

It seems okay until its finally “ready”, then, throws an exception.

2023-04-23 10:26:16.699 | INFO     | 153253 | __main__:on_ready:179 | Speech client is ready.
Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/home/aburkert/Downloads/mycroft/mycroft-core/.venv/lib/python3.9/site-packages/precise_runner/runner.py", line 197, in _handle_predictions
    prob = self.engine.get_prediction(chunk)
  File "/home/aburkert/Downloads/mycroft/mycroft-core/.venv/lib/python3.9/site-packages/precise_runner/runner.py", line 64, in get_prediction
    self.proc.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe

Would you please advise?

Thank you,

Burkert