Add support for self.request_finalize() for Pipecat-based VAD.

This commit is contained in:
Sam Sykes
2026-01-27 10:44:35 +00:00
parent 60168f7f69
commit 91346f5f37

View File

@@ -693,6 +693,7 @@ class SpeechmaticsSTTService(STTService):
f"{self} VADUserStoppedSpeakingFrame received but internal VAD is being used"
)
elif not self._enable_vad and self._client is not None:
self.request_finalize()
self._client.finalize()
async def _send_frames(self, segments: list[dict[str, Any]], finalized: bool = False) -> None: