interface RealtimeModelOptions {
    apiKey?: string;
    apiSecret?: string;
    baseURL?: string;
    connOptions?: APIConnectOptions;
    inputAudioNoiseReduction?: null | NoiseReduction;
    inputAudioTranscription?: null | InputAudioTranscription;
    maxSessionDuration?: null | number;
    modalities?: Modality[];
    model: AnyString | inference.RealtimeModels;
    provider?: string;
    reasoning?: realtime.Reasoning;
    speed?: number;
    toolChoice?: llm.ToolChoice;
    tracing?: null | TracingConfig;
    turnDetection?: null | TurnDetectionType;
    voice?: string;
}

Properties

apiKey?: string
apiSecret?: string
baseURL?: string
connOptions?: APIConnectOptions
inputAudioNoiseReduction?: null | NoiseReduction
inputAudioTranscription?: null | InputAudioTranscription
maxSessionDuration?: null | number
modalities?: Modality[]
model: AnyString | inference.RealtimeModels
provider?: string

Host that must serve the model, e.g. 'azure' or 'openai' for OpenAI models. The session is refused if no host in the region matches.

reasoning?: realtime.Reasoning
speed?: number
toolChoice?: llm.ToolChoice
tracing?: null | TracingConfig
turnDetection?: null | TurnDetectionType
voice?: string