Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected error during #5

Open
don86nl opened this issue Apr 20, 2024 · 4 comments
Open

Unexpected error during #5

don86nl opened this issue Apr 20, 2024 · 4 comments

Comments

@don86nl
Copy link

don86nl commented Apr 20, 2024

Hi Haade,

Thanks for your work. I'm not getting the microphone to work. When using a wake-word, the it seems to be detected, because only using the right wakeword produces the following error:

[10:28:26][E][voice_assistant:693]: Error: wake-stream-failed - Unexpected error during wake-word-detection

Any idea?

Part from log:

[10:28:24][D][voice_assistant:126]: microphone not running
[10:28:24][D][voice_assistant:210]: Requesting start...
[10:28:24][D][voice_assistant:439]: State changed from START_PIPELINE to STARTING_PIPELINE
[10:28:24][D][voice_assistant:126]: microphone not running
[10:28:24][D][voice_assistant:476]: Client started, streaming microphone
[10:28:24][D][voice_assistant:439]: State changed from STARTING_PIPELINE to START_MICROPHONE
[10:28:24][D][voice_assistant:445]: Desired state set to STREAMING_MICROPHONE
[10:28:24][D][voice_assistant:163]: Starting Microphone
[10:28:24][D][voice_assistant:439]: State changed from START_MICROPHONE to STARTING_MICROPHONE
[10:28:24][D][voice_assistant:563]: Event Type: 1
[10:28:24][D][voice_assistant:566]: Assist Pipeline running
[10:28:24][D][voice_assistant:439]: State changed from STARTING_MICROPHONE to STREAMING_MICROPHONE
[10:28:24][D][voice_assistant:563]: Event Type: 9
[10:28:26][D][voice_assistant:563]: Event Type: 0
[10:28:26][E][voice_assistant:693]: Error: wake-stream-failed - Unexpected error during wake-word-detection
[10:28:26][D][voice_assistant:556]: Signaling stop...
[10:28:26][D][voice_assistant:439]: State changed from STREAMING_MICROPHONE to STOP_MICROPHONE
[10:28:26][D][voice_assistant:445]: Desired state set to IDLE
[10:28:26][D][voice_assistant:439]: State changed from STOP_MICROPHONE to STOPPING_MICROPHONE
[10:28:26][D][light:036]: '${device_name} Light' Setting:
[10:28:26][D][light:051]: Brightness: 100%
[10:28:26][D][light:059]: Red: 100%, Green: 0%, Blue: 0%
[10:28:26][D][voice_assistant:563]: Event Type: 2
[10:28:26][D][voice_assistant:653]: Assist Pipeline ended
[10:28:26][D][voice_assistant:439]: State changed from STOPPING_MICROPHONE to IDLE
[10:28:26][D][voice_assistant:439]: State changed from IDLE to START_PIPELINE
[10:28:26][D][voice_assistant:445]: Desired state set to START_MICROPHONE
[10:28:26][D][voice_assistant:126]: microphone not running
[10:28:26][D][voice_assistant:210]: Requesting start...
[10:28:27][D][voice_assistant:439]: State changed from START_PIPELINE to STARTING_PIPELINE
[10:28:27][D][voice_assistant:126]: microphone not running

@don86nl
Copy link
Author

don86nl commented Apr 20, 2024

Log in Home Assistant:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/assist_pipeline/pipeline.py", line 713, in wake_word_detection
    result = await self.wake_word_entity.async_process_audio_stream(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/wake_word/__init__.py", line 113, in async_process_audio_stream
    result = await self._async_process_audio_stream(stream, wake_word_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/wyoming/wake_word.py", line 141, in _async_process_audio_stream
    return wake_word.DetectionResult(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DetectionResult.__init__() missing 1 required positional argument: 'wake_word_phrase'

@haade-administrator
Copy link
Owner

hi install
assist microphone
openwakeword
whisper

Open your Home Assistant instance and show the add-on store.

@don86nl
Copy link
Author

don86nl commented Apr 21, 2024

Thanks, haade for helping out.
However, I do have everything installed, besides local microphone. Isnt that just for using a mic on the hardware HA is installed?

My assistant setup:
Home Assistant cloud (stt & tts. I did try whisper, no change in the error.)
Openwakeword; hey_jarvis
Dutch language

@haade-administrator
Copy link
Owner

ok i look next time the code for debugging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants