OpenAI API key, or comma-separated keys rotated per session. Sent as a Bearer token on the upgrade.
Optional baseRealtime 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.
'wss://api.openai.com/v1/realtime'
Optional modelTranscription model.
'gpt-4o-mini-transcribe'
Optional turnServer turn detection, or null for none: the caller then ends each turn
with flush(), which commits the buffer. Defaults to server turn
detection with 600 ms of padding and 350 ms of silence (the LiveKit plugin's
values; OpenAI's own defaults are 300 ms and 500 ms), and to null for gpt-live-transcribe
and gpt-realtime-whisper, which accept no server turn detection.
Optional promptContext for the transcription model, such as vocabulary or the setting.
Optional safetyStable, privacy-preserving identifier of the end user (for example a hash
of an account id), sent as the OpenAI-Safety-Identifier header.
Optional connectTime a connection has to open and confirm its session update.
10_000
Optional maxReconnects 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.
3
Optional retryWait before each reconnect after the first, which waits 100 ms.
2_000
Optional maxAudio held while no connection can take it (a reconnect), in milliseconds; older audio is dropped first.
10_000
Optional finalLongest wait for the finals of committed items in flush() and when a connection closes.
5_000
Optional usageInterval of 'usage' reports for open connections; 0 reports each connection once, when it closes.
0
Optional rolloverRollover settings, or false to keep a single connection.
Optional priorityChain priority. Lower values are tried first.
15
Optional capabilitiesOptional capability overrides. Merged into defaultCapabilities().
Optional healthHealth 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.
Configuration for the OpenAIRealtimeTranscriptionSTT provider.
Per-session overrides go in
StreamingSTTConfig.providerOptions:safetyIdentifier(string) andprompt(string).