Options for the OpenAI GPT-Live full-duplex voice model.

interface GPTLiveModelOptions {
    apiKey?: string;
    baseURL?: string;
    connOptions?: APIConnectOptions;
    decisionsOptions?: realtime.DecisionsOptions;
    delegation?: DelegationTarget;
    maxSessionDuration?: null | number;
    model?: string;
    responsesOptions?: ResponsesDelegationOptions;
    triggers?: realtime.DecisionsTrigger[];
    voice?: Record<string, unknown> | string & {} | GPTLiveVoices;
}

Properties

apiKey?: string

Falls back to OPENAI_API_KEY.

baseURL?: string

Falls back to OPENAI_BASE_URL, then https://api.openai.com/v1.

connOptions?: APIConnectOptions

Connection/startup timeout and retry limits. Defaults to DEFAULT_API_CONNECT_OPTIONS.

decisionsOptions?: realtime.DecisionsOptions

Model and questions when delegation is decisions.

delegation?: DelegationTarget

Fixed at startup. Client and Decisions delegation require an agent with no tools.

maxSessionDuration?: null | number

Recycle the connection after this many milliseconds. Null (the default) disables the timer.

model?: string

Voice model identifier. Defaults to gpt-live-1.

responsesOptions?: ResponsesDelegationOptions

Backend configuration when delegation is responses (the default).

Decisions configurations evaluated on transcript events, in any mode.

voice?: Record<string, unknown> | string & {} | GPTLiveVoices

A named voice (marin by default), or an authorized custom voice object. Fixed at startup. Names pass through unchanged.