refactor: remove constants and put in config file #24

Merged
8464960 merged 14 commits from refactor/config-file into dev 2025-11-19 16:31:52 +00:00
Showing only changes of commit f74efba511 - Show all commits

View File

@@ -64,8 +64,8 @@ class Streaming(CyclicBehaviour):
async def reset(self):
"""Clears the ZeroMQ queue and tells this behavior to start."""
discarded = 0
poll_time = settings.behaviour_settings.vad_poll_time
while await self.audio_in_poller.poll(poll_time) is not None:
# Poll for the shortest amount of time possible to clear the queue
while await self.audio_in_poller.poll(1) is not None:
discarded += 1
self.agent.logger.info(f"Discarded {discarded} audio packets before starting.")
self._ready = True