Package-level declarations

Types

Link copied to clipboard
data class AudioFrame(val samples: ShortArray, val sampleRateHz: Int = DEFAULT_SAMPLE_RATE_HZ)

One frame of 16-bit signed PCM audio.

Link copied to clipboard
sealed interface ClientRealtimeEvent

Events the client sends into a realtime session.

Link copied to clipboard

Audio sample format for realtime ingress / egress.

Link copied to clipboard
sealed interface RealtimeEvent

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

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
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
sealed interface ToolChoice

Provider-neutral tool-choice hint for the session.

Link copied to clipboard
sealed interface VadConfig

Voice-activity-detection strategy for a realtime session.