Don't skip chunk before speech (#93825)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user