Package-level declarations
Types
Link copied to clipboard
One frame of 16-bit signed PCM audio.
Link copied to clipboard
Events the client sends into a realtime session.
Link copied to clipboard
Audio sample format for realtime ingress / egress.
Link copied to clipboard
Vendor-neutral event observed during a realtime session.
Link copied to clipboard
interface RealtimeGateway
Vendor-neutral gateway for a realtime voice provider.
Link copied to clipboard
interface RealtimeGatewaySession
Handle to a single open realtime session.
Link copied to clipboard
Output modality the model is permitted to produce in a realtime session.
Link copied to clipboard
class RealtimeSession
Link copied to clipboard
class RealtimeVoiceBroker(gateway: RealtimeGateway, toolRunner: ToolRunner = ParallelToolRunner(), tracer: Tracer = NullTracer)
Coordinator above a RealtimeGateway — opens sessions, threads in the tool runner + tracer, and produces stateful RealtimeSession handles.
Link copied to clipboard
data class RealtimeVoiceConfig(val instructions: String? = null, val voice: String? = null, val modalities: Set<RealtimeModality> = setOf(RealtimeModality.AUDIO, RealtimeModality.TEXT), val audioFormat: RealtimeAudioFormat = RealtimeAudioFormat.PCM16, val turnDetection: VadConfig = VadConfig.Server(), val tools: List<LlmTool> = emptyList(), val toolChoice: ToolChoice = ToolChoice.Auto, val temperature: Double? = null, val maxResponseOutputTokens: Int? = null, val inputAudioTranscriptionModel: String? = "whisper-1", val providerExtras: Map<String, String> = emptyMap())
Vendor-neutral configuration for a realtime voice session.
Link copied to clipboard
Provider-neutral tool-choice hint for the session.