Hi i don’t know if i doing this wrong or something else SDK, but i can not disable the VAD in the real-time session Here my code
let data = // fetch token is a simple Laravel HTTP request
const agent = new RealtimeAgent({
name: 'Assistance',
instructions: this.instructions(),
voice: 'alloy',
});
session = new RealtimeSession(agent, {
config: {
turnDetection : null
}
});
await session.connect({
apiKey: data.client_secret.value
});
Error I get
WebRTC: ICE failed, add a STUN server and see about:webrtc for more details
HTTP request to get token
$response = Http::withHeaders([
'Authorization' => 'Bearer '.config('services.openai.api_key'),
'Content-Type' => 'application/json',
])->post('https://api.openai.com/v1/realtime/sessions', [
'turn_detection' => null
]);