inference/__init__.py

livekit/agents · livekit-agents/livekit/agents/inference/__init__.py · python · Apache-2.0
voice, Voice / Speech

Central hub exposing inference components like STT, TTS, LLM, and realtime models.

# Source: https://github.com/livekit/agents | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
from typing import TYPE_CHECKING, Any

from ._realtime_models import (
    DuplexModels,
    OpenAIRealtimeModels,
    RealtimeModels,
    XAIRealtimeModels,
    is_duplex_model,
    is_realtime_model,
)
from ._utils import InferenceClass
from .decision_model import DecisionModel, DecisionModels
from .eot import TurnDetector, TurnDetectorModels, TurnDetectorVersions
from .interruption import (
    AdaptiveInterruptionDetector,
    InterruptionDataFrameType,
    InterruptionDetectionError,
    OverlappingSpeechEvent,
)
from .llm import LLM, LLMModels, LLMStream, llm_from_model_string
from .st

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key