feat: add card examples and speed up rtc connect
This commit is contained in:
parent
04afead5af
commit
23fd806e6d
41 changed files with 3327 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue