feat: implemented forced speech and speech queue

This commit is contained in:
Luijkx,S.O.H. (Storm)
2026-01-14 14:26:38 +00:00
committed by Pim Hutting
parent 1e77548622
commit e51cf8fe65
7 changed files with 345 additions and 33 deletions

View File

@@ -89,6 +89,7 @@ class AudioSender(SocketBase):
try:
while not state.exit_event.is_set():
data = stream.read(chunk)
if (state.is_speaking): continue # Do not send audio while the robot is speaking
self.socket.send(data)
except IOError as e:
logger.error("Stopped listening: failed to get audio from microphone.", exc_info=e)