mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Don't skip chunk before speech (#93825)
This commit is contained in:
parent
9f4c9f1ce3
commit
1dcabae760
@ -285,13 +285,13 @@ class PipelineRtpDatagramProtocol(RtpDatagramProtocol):
|
||||
chunk = await self._audio_queue.get()
|
||||
|
||||
while chunk:
|
||||
chunk_buffer.append(chunk)
|
||||
|
||||
segmenter.process(chunk)
|
||||
if segmenter.in_command:
|
||||
# Buffer until command starts
|
||||
return True
|
||||
|
||||
# Buffer until command starts
|
||||
chunk_buffer.append(chunk)
|
||||
|
||||
async with async_timeout.timeout(self.audio_timeout):
|
||||
chunk = await self._audio_queue.get()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user