Commit ·
12915bc
1
Parent(s): a62bbe4
fix: restore tap continue feedback sound (preserve functionality)
Browse files- Restored wakeup sound playback in _tap_continue_feedback()
- Use stop_first=False to avoid interrupting ongoing audio
- Follows project principle 9: preserve existing functionality
reachy_mini_ha_voice/satellite.py
CHANGED
|
@@ -568,13 +568,15 @@ class VoiceSatelliteProtocol(APIServer):
|
|
| 568 |
def _tap_continue_feedback(self) -> None:
|
| 569 |
"""Provide feedback when continuing conversation in tap mode.
|
| 570 |
|
| 571 |
-
|
| 572 |
-
Sound is NOT played here to avoid blocking audio streaming.
|
| 573 |
"""
|
| 574 |
try:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 575 |
# Trigger a small nod to indicate ready for input
|
| 576 |
-
# NOTE: Do NOT play sound here - it blocks audio streaming
|
| 577 |
-
# The VoiceAssistantRequest already triggers HA to start listening
|
| 578 |
if self.state.motion_enabled and self.state.motion:
|
| 579 |
self.state.motion.on_continue_listening()
|
| 580 |
_LOGGER.debug("Tap continue feedback: continue listening pose")
|
|
|
|
| 568 |
def _tap_continue_feedback(self) -> None:
|
| 569 |
"""Provide feedback when continuing conversation in tap mode.
|
| 570 |
|
| 571 |
+
Plays a short sound and triggers a nod to indicate ready for next input.
|
|
|
|
| 572 |
"""
|
| 573 |
try:
|
| 574 |
+
# Play the wakeup sound (short beep) to indicate listening
|
| 575 |
+
# Use stop_first=False to avoid interrupting any ongoing audio
|
| 576 |
+
self.state.tts_player.play(self.state.wakeup_sound, stop_first=False)
|
| 577 |
+
_LOGGER.debug("Tap continue feedback: sound played")
|
| 578 |
+
|
| 579 |
# Trigger a small nod to indicate ready for input
|
|
|
|
|
|
|
| 580 |
if self.state.motion_enabled and self.state.motion:
|
| 581 |
self.state.motion.on_continue_listening()
|
| 582 |
_LOGGER.debug("Tap continue feedback: continue listening pose")
|