Interface: OpenAIRealtimeTranscriptionSTTConfig
Defined in: packages/agentos/src/io/voice-pipeline/providers/OpenAIRealtimeTranscriptionSTT.ts:193
Configuration for the OpenAIRealtimeTranscriptionSTT provider.
Per-session overrides go in StreamingSTTConfig.providerOptions:
safetyIdentifier (string) and prompt (string).
Properties
apiKey
apiKey:
string
Defined in: packages/agentos/src/io/voice-pipeline/providers/OpenAIRealtimeTranscriptionSTT.ts:195
OpenAI API key, or comma-separated keys rotated per session. Sent as a Bearer token on the upgrade.
baseUrl?
optionalbaseUrl:string
Defined in: packages/agentos/src/io/voice-pipeline/providers/OpenAIRealtimeTranscriptionSTT.ts:205
Realtime API WebSocket URL, without query parameters. A host other than
api.openai.com (an OpenAI-compatible gateway) also gets the model as a
model query parameter. The default health probe reads the models
endpoint beside it: the same URL over HTTP(S), with a trailing /realtime
replaced by /models.
Default Value
'wss://api.openai.com/v1/realtime'
capabilities?
optionalcapabilities:Partial<ProviderCapabilities>
Defined in: packages/agentos/src/io/voice-pipeline/providers/OpenAIRealtimeTranscriptionSTT.ts:258
Optional capability overrides. Merged into defaultCapabilities().
connectTimeoutMs?
optionalconnectTimeoutMs:number
Defined in: packages/agentos/src/io/voice-pipeline/providers/OpenAIRealtimeTranscriptionSTT.ts:229
Time a connection has to open and confirm its session update.
Default Value
10_000
finalTimeoutMs?
optionalfinalTimeoutMs:number
Defined in: packages/agentos/src/io/voice-pipeline/providers/OpenAIRealtimeTranscriptionSTT.ts:246
Longest wait for the finals of committed items in flush() and when a connection closes.
Default Value
5_000
healthProbe()?
optionalhealthProbe: (apiKey) =>Promise<{latencyMs:number;ok:boolean;status:number; }>
Defined in: packages/agentos/src/io/voice-pipeline/providers/OpenAIRealtimeTranscriptionSTT.ts:265
Health probe, injectable for tests. Defaults to a GET of the models
endpoint on the host baseUrl names (https://api.openai.com/v1/models
when it is unset), with the key as a Bearer token.
Parameters
apiKey
string
Returns
Promise<{ latencyMs: number; ok: boolean; status: number; }>
maxBufferedMs?
optionalmaxBufferedMs:number
Defined in: packages/agentos/src/io/voice-pipeline/providers/OpenAIRealtimeTranscriptionSTT.ts:243
Audio held while no connection can take it (a reconnect), in milliseconds; older audio is dropped first.
Default Value
10_000
maxRetries?
optionalmaxRetries:number
Defined in: packages/agentos/src/io/voice-pipeline/providers/OpenAIRealtimeTranscriptionSTT.ts:237
Reconnects allowed after consecutive failures before the session ends
with an 'error'. The count resets after every final transcript and when
a dropped connection had stayed open longer than connectTimeoutMs.
Default Value
3
model?
optionalmodel:string
Defined in: packages/agentos/src/io/voice-pipeline/providers/OpenAIRealtimeTranscriptionSTT.ts:208
Transcription model.
Default Value
'gpt-4o-mini-transcribe'
priority?
optionalpriority:number
Defined in: packages/agentos/src/io/voice-pipeline/providers/OpenAIRealtimeTranscriptionSTT.ts:255
Chain priority. Lower values are tried first.
Default
15