feat: add card examples and speed up rtc connect
Some checks failed
CI / Backend Checks (push) Failing after 29s
CI / Frontend Checks (push) Failing after 36s

This commit is contained in:
kacper 2026-03-15 21:44:47 -04:00
parent 04afead5af
commit 23fd806e6d
41 changed files with 3327 additions and 3 deletions

View file

@ -83,6 +83,7 @@ BRAILLE_SPINNER_RE = re.compile(r"[\u2800-\u28ff]")
TTS_ALLOWED_ASCII = set(
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 .,!?;:'\"()[]{}@#%&*+-_/<>|"
)
LOCAL_ICE_GATHER_TIMEOUT_S = 0.35
def _sanitize_tts_text(text: str) -> str:
@ -1346,7 +1347,7 @@ class WebRTCVoiceSession:
completed.set()
with contextlib.suppress(asyncio.TimeoutError):
await asyncio.wait_for(completed.wait(), timeout=3)
await asyncio.wait_for(completed.wait(), timeout=LOCAL_ICE_GATHER_TIMEOUT_S)
async def _warmup_stt(self) -> None:
try: