Commit ·
fe0a85b
1
Parent(s): 9ef4811
v0.2.11: Disable wakeup sound to prevent daemon crash + add debug logging
Browse files- pyproject.toml +1 -1
- reachy_mini_ha_voice/__init__.py +1 -1
- reachy_mini_ha_voice/main.py +3 -1
- reachy_mini_ha_voice/satellite.py +5 -1
pyproject.toml
CHANGED
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
| 4 |
|
| 5 |
[project]
|
| 6 |
name = "reachy_mini_ha_voice"
|
| 7 |
-
version = "0.2.
|
| 8 |
description = "Home Assistant Voice Assistant for Reachy Mini"
|
| 9 |
readme = "README.md"
|
| 10 |
requires-python = ">=3.10"
|
|
|
|
| 4 |
|
| 5 |
[project]
|
| 6 |
name = "reachy_mini_ha_voice"
|
| 7 |
+
version = "0.2.11"
|
| 8 |
description = "Home Assistant Voice Assistant for Reachy Mini"
|
| 9 |
readme = "README.md"
|
| 10 |
requires-python = ">=3.10"
|
reachy_mini_ha_voice/__init__.py
CHANGED
|
@@ -11,7 +11,7 @@ Key features:
|
|
| 11 |
- Reachy Mini motion control integration
|
| 12 |
"""
|
| 13 |
|
| 14 |
-
__version__ = "0.2.
|
| 15 |
__author__ = "Desmond Dong"
|
| 16 |
|
| 17 |
# Don't import main module here to avoid runpy warning
|
|
|
|
| 11 |
- Reachy Mini motion control integration
|
| 12 |
"""
|
| 13 |
|
| 14 |
+
__version__ = "0.2.11"
|
| 15 |
__author__ = "Desmond Dong"
|
| 16 |
|
| 17 |
# Don't import main module here to avoid runpy warning
|
reachy_mini_ha_voice/main.py
CHANGED
|
@@ -122,10 +122,12 @@ class ReachyMiniHaVoice(ReachyMiniApp):
|
|
| 122 |
stop_event: Event to signal graceful shutdown
|
| 123 |
"""
|
| 124 |
logger.info("Starting Home Assistant Voice Assistant...")
|
| 125 |
-
logger.
|
| 126 |
|
| 127 |
# Create and run the voice assistant service
|
| 128 |
service = VoiceAssistantService(reachy_mini)
|
|
|
|
|
|
|
| 129 |
|
| 130 |
# Always create a new event loop to avoid conflicts with SDK
|
| 131 |
loop = asyncio.new_event_loop()
|
|
|
|
| 122 |
stop_event: Event to signal graceful shutdown
|
| 123 |
"""
|
| 124 |
logger.info("Starting Home Assistant Voice Assistant...")
|
| 125 |
+
logger.warning("run() called with reachy_mini=%s (type=%s)", reachy_mini, type(reachy_mini).__name__)
|
| 126 |
|
| 127 |
# Create and run the voice assistant service
|
| 128 |
service = VoiceAssistantService(reachy_mini)
|
| 129 |
+
logger.warning("VoiceAssistantService created, motion._movement_manager=%s",
|
| 130 |
+
service._motion._movement_manager if service._motion else None)
|
| 131 |
|
| 132 |
# Always create a new event loop to avoid conflicts with SDK
|
| 133 |
loop = asyncio.new_event_loop()
|
reachy_mini_ha_voice/satellite.py
CHANGED
|
@@ -328,7 +328,11 @@ class VoiceSatelliteProtocol(APIServer):
|
|
| 328 |
)
|
| 329 |
self.duck()
|
| 330 |
self._is_streaming_audio = True
|
| 331 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 332 |
|
| 333 |
def stop(self) -> None:
|
| 334 |
self.state.active_wake_words.discard(self.state.stop_word.id)
|
|
|
|
| 328 |
)
|
| 329 |
self.duck()
|
| 330 |
self._is_streaming_audio = True
|
| 331 |
+
# NOTE: Wakeup sound disabled to prevent daemon crash
|
| 332 |
+
# The play_sound/push_audio_sample conflicts with GStreamer audio recording
|
| 333 |
+
# TODO: Re-enable once audio playback is fixed
|
| 334 |
+
# self.state.tts_player.play(self.state.wakeup_sound)
|
| 335 |
+
_LOGGER.debug("Wakeup sound skipped (disabled to prevent daemon crash)")
|
| 336 |
|
| 337 |
def stop(self) -> None:
|
| 338 |
self.state.active_wake_words.discard(self.state.stop_word.id)
|