Skip to content

Assist Microphone v2.2.3 - bug in /usr/local/lib/python3.11/dist-packages/homeassistant_satellite/snd.py #84

@alainvdu69

Description

@alainvdu69

I've HAOS 2025.7.4
Using :

  • Assist Microphone v2.2.3
  • Openwakeword 1.10.0
  • Google AI Conversation
    The wake word is well detected but i can't ear the response, or perhaps 1 time just after restart of Assist Microphone
    The logs of Assist :

DEBUG:homeassistant_satellite.remote:{'id': 2, 'type': 'event', 'event': {'type': 'intent-start', 'data': {'engine': 'conversation.google_ai_conversation', 'language': 'fr', 'intent_input': 'Je suis.', 'conversation_id': '01K202BN8QTYAEWBA467P84PCN', 'device_id': None, 'prefer_local_intents': True}, 'timestamp': '2025-08-06T16:10:25.480833+00:00'}}
DEBUG:main:intent-start {'engine': 'conversation.google_ai_conversation', 'language': 'fr', 'intent_input': 'Je suis.', 'conversation_id': '01K202BN8QTYAEWBA467P84PCN', 'device_id': None, 'prefer_local_intents': True}
DEBUG:homeassistant_satellite.remote:{'id': 2, 'type': 'event', 'event': {'type': 'intent-progress', 'data': {'chat_log_delta': {'role': 'assistant', 'content': 'Je suis à votre écoute. Comment puis-je vous aider ?'}}, 'timestamp': '2025-08-06T16:10:26.235235+00:00'}}
DEBUG:main:intent-progress {'chat_log_delta': {'role': 'assistant', 'content': 'Je suis à votre écoute. Comment puis-je vous aider ?'}}
DEBUG:homeassistant_satellite.remote:{'id': 2, 'type': 'event', 'event': {'type': 'intent-end', 'data': {'processed_locally': False, 'intent_output': {'response': {'speech': {'plain': {'speech': 'Je suis à votre écoute. Comment puis-je vous aider ?', 'extra_data': None}}, 'card': {}, 'language': 'fr', 'response_type': 'action_done', 'data': {'targets': [], 'success': [], 'failed': []}}, 'conversation_id': '01K202BN8QTYAEWBA467P84PCN', 'continue_conversation': True}}, 'timestamp': '2025-08-06T16:10:26.238228+00:00'}}
DEBUG:main:intent-end {'processed_locally': False, 'intent_output': {'response': {'speech': {'plain': {'speech': 'Je suis à votre écoute. Comment puis-je vous aider ?', 'extra_data': None}}, 'card': {}, 'language': 'fr', 'response_type': 'action_done', 'data': {'targets': [], 'success': [], 'failed': []}}, 'conversation_id': '01K202BN8QTYAEWBA467P84PCN', 'continue_conversation': True}}
DEBUG:homeassistant_satellite.remote:{'id': 2, 'type': 'event', 'event': {'type': 'tts-start', 'data': {'engine': 'tts.google_ai_tts', 'language': 'fr-FR', 'voice': 'zephyr', 'tts_input': 'Je suis à votre écoute. Comment puis-je vous aider ?'}, 'timestamp': '2025-08-06T16:10:26.238301+00:00'}}
DEBUG:main:tts-start {'engine': 'tts.google_ai_tts', 'language': 'fr-FR', 'voice': 'zephyr', 'tts_input': 'Je suis à votre écoute. Comment puis-je vous aider ?'}
DEBUG:homeassistant_satellite.remote:{'id': 2, 'type': 'event', 'event': {'type': 'tts-end', 'data': {'tts_output': {'media_id': 'media-source://tts/-stream-/iTfsiHG3OJ_L19fxv7ZC1A.mp3', 'token': 'iTfsiHG3OJ_L19fxv7ZC1A.mp3', 'url': '/api/tts_proxy/iTfsiHG3OJ_L19fxv7ZC1A.mp3', 'mime_type': 'audio/mpeg'}}, 'timestamp': '2025-08-06T16:10:26.241554+00:00'}}
DEBUG:main:tts-end {'tts_output': {'media_id': 'media-source://tts/-stream-/iTfsiHG3OJ_L19fxv7ZC1A.mp3', 'token': 'iTfsiHG3OJ_L19fxv7ZC1A.mp3', 'url': '/api/tts_proxy/iTfsiHG3OJ_L19fxv7ZC1A.mp3', 'mime_type': 'audio/mpeg'}}
DEBUG:root:play ffmpeg: ['ffmpeg', '-i', 'http://labohaos:8123/api/tts_proxy/iTfsiHG3OJ_L19fxv7ZC1A.mp3', '-f', 'wav', '-ar', '22050', '-ac', '1', '-filter:a', 'volume=1.0', '-']
DEBUG:root:play: ['aplay', '-r', '22050', '-c', '1', '-f', 'S16_LE', '-t', 'raw']
Playing raw data 'stdin' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
ERROR:main:Unexpected error
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/homeassistant_satellite/main.py", line 225, in main
play(
File "/usr/local/lib/python3.11/dist-packages/homeassistant_satellite/snd.py", line 90, in play_subprocess
with wave.open(ffmpeg_proc.stdout, "rb") as wav_file:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/wave.py", line 630, in open
return Wave_read(f)
^^^^^^^^^^^^
File "/usr/lib/python3.11/wave.py", line 284, in init
self.initfp(f)
File "/usr/lib/python3.11/wave.py", line 249, in initfp
self._file = _Chunk(file, bigendian = 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/wave.py", line 114, in init
raise EOFError
EOFError
DEBUG:homeassistant_satellite.remote:{'type': 'auth_required', 'ha_version': '2025.7.4'}
DEBUG:homeassistant_satellite.remote:{'type': 'auth_ok', 'ha_version': '2025.7.4'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions