allow multiple StartFrames

This commit is contained in:
Aleix Conchillo Flaqué
2025-02-25 09:52:54 -08:00
parent d2f006682c
commit e60b65228b
14 changed files with 92 additions and 14 deletions

View File

@@ -840,7 +840,8 @@ class SegmentedSTTService(STTService):
async def start(self, frame: StartFrame):
await super().start(frame)
(self._content, self._wave) = self._new_wave()
if not self._wave:
(self._content, self._wave) = self._new_wave()
async def stop(self, frame: EndFrame):
await super().stop(frame)