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

@@ -95,6 +95,18 @@ async fn realtime_ws_e2e_session_create_and_event_flow() {
first_json["session"]["audio"]["input"]["format"]["rate"],
Value::from(24_000)
);
assert_eq!(
first_json["session"]["audio"]["input"]["turn_detection"]["type"],
Value::String("semantic_vad".to_string())
);
assert_eq!(
first_json["session"]["audio"]["input"]["turn_detection"]["interrupt_response"],
Value::Bool(false)
);
assert_eq!(
first_json["session"]["audio"]["input"]["turn_detection"]["create_response"],
Value::Bool(true)
);
assert_eq!(
first_json["session"]["tool_choice"],
Value::String("auto".to_string())