Merge remote-tracking branch 'origin/dev' into feat/transcription-agent

This commit is contained in:
Twirre Meulenbelt
2025-10-29 12:20:09 +01:00
6 changed files with 24 additions and 3 deletions

View File

@@ -59,8 +59,10 @@ class Streaming(CyclicBehaviour):
async def run(self) -> None:
data = await self.audio_in_poller.poll()
if data is None:
logger.debug("No audio data received. Discarding buffer until new data arrives.")
self.audio_buffer = np.array([], dtype=np.float32)
if len(self.audio_buffer) > 0:
logger.debug("No audio data received. Discarding buffer until new data arrives.")
self.audio_buffer = np.array([], dtype=np.float32)
self.i_since_speech = 100
return
# copy otherwise Torch will be sad that it's immutable