This commit is contained in:
hcl 2026-01-30 02:18:55 +00:00 committed by GitHub
commit 6eaf71174d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -124,12 +124,17 @@ class OpenAIRealtimeSTTSession implements RealtimeSTTSession {
this.connected = true; this.connected = true;
this.reconnectAttempts = 0; this.reconnectAttempts = 0;
// Configure the transcription session // Configure the transcription session (GA API format)
this.sendEvent({ this.sendEvent({
type: "transcription_session.update", type: "session.update",
session: { session: {
input_audio_format: "g711_ulaw", type: "transcription",
input_audio_transcription: { audio: {
input: {
format: {
type: "audio/pcmu",
},
transcription: {
model: this.model, model: this.model,
}, },
turn_detection: { turn_detection: {
@ -139,6 +144,8 @@ class OpenAIRealtimeSTTSession implements RealtimeSTTSession {
silence_duration_ms: this.silenceDurationMs, silence_duration_ms: this.silenceDurationMs,
}, },
}, },
},
},
}); });
resolve(); resolve();