realtime: disable output interruption from turn detection

This commit is contained in:
Ahmed Ibrahim
2026-03-04 17:14:23 -08:00
parent 159bda93c6
commit a5420779c4
3 changed files with 39 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ pub(super) struct SessionAudio {
#[derive(Debug, Clone, Serialize)]
pub(super) struct SessionAudioInput {
pub(super) format: SessionAudioFormat,
pub(super) turn_detection: SessionTurnDetection,
}
#[derive(Debug, Clone, Serialize)]
@@ -57,6 +58,14 @@ pub(super) struct SessionAudioFormat {
pub(super) rate: u32,
}
#[derive(Debug, Clone, Serialize)]
pub(super) struct SessionTurnDetection {
#[serde(rename = "type")]
pub(super) kind: String,
pub(super) interrupt_response: bool,
pub(super) create_response: bool,
}
#[derive(Debug, Clone, Serialize)]
pub(super) struct SessionAudioOutput {
pub(super) format: SessionAudioOutputFormat,