Merge bc26cf3688 into 4583f88626
This commit is contained in:
commit
6eaf71174d
@ -124,19 +124,26 @@ 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: {
|
||||||
model: this.model,
|
input: {
|
||||||
},
|
format: {
|
||||||
turn_detection: {
|
type: "audio/pcmu",
|
||||||
type: "server_vad",
|
},
|
||||||
threshold: this.vadThreshold,
|
transcription: {
|
||||||
prefix_padding_ms: 300,
|
model: this.model,
|
||||||
silence_duration_ms: this.silenceDurationMs,
|
},
|
||||||
|
turn_detection: {
|
||||||
|
type: "server_vad",
|
||||||
|
threshold: this.vadThreshold,
|
||||||
|
prefix_padding_ms: 300,
|
||||||
|
silence_duration_ms: this.silenceDurationMs,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user