Custom exception for voice session broker operations, indicating failures during LiveKit dispatch creation or session orchestration.
# Source: https://github.com/allgpt-co/QuickVoice | License: MIT | Copyright 2026 QuickVoice contributors
# Provided via justclaw.it.com; keep this notice with the code.
import json
import os
import uuid
from datetime import timedelta
from typing import Any, Protocol
from livekit import api
from handlers.voice_config_resolution import resolve_voice_config
SCHEMA_VERSION = "quickvoice.voice-session.v1"
MAX_SESSION_TTL_SECONDS = 10800
class VoiceSessionBrokerError(RuntimeError):
pass
class DispatchClient(Protocol):
async def create_dispatch(self, room_name: str, agent_name: str, metadata: str) -> str:
...
class FakeDispatchClient:
def __init__(self, dispatch_id: str = "dispatch-test"):
self.dispatch_id = dispatch_id
self.calls: list[dict[str, str
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key