This commit is contained in:
Magzhan Zhumabayev
2026-05-01 17:24:26 +05:00
parent d756003036
commit 22ec07f757
+7 -1
View File
@@ -1969,11 +1969,17 @@ class CallSession:
async def _start_live_stt_stream(self) -> None:
await self._cancel_live_stt_stream()
self._reset_semantic_endpointing()
if self._awaiting_customer_name:
LOGGER.info(
"realtime session %s live STT stream skipped for name capture; will use batch STT with keyterms",
self.session_id,
)
return
try:
LOGGER.info("realtime session %s live STT stream start requested", self.session_id)
live_stt_stream = await self._stt.start_stream(
partial_callback=self._handle_partial_transcript,
keyterms=self._name_capture_keyterms() if self._awaiting_customer_name else None,
keyterms=None,
)
except Exception:
LOGGER.exception("realtime session %s failed to start live STT stream", self.session_id)