When are we supporting WebRTC connection with Azure OpenAI audio models?

LeetGPT 90 Reputation points
2025-03-22T03:36:24.9733333+00:00

https://platform.openai.com/docs/guides/realtime#connect-with-webrtc

We've been experimented with webrtc connection on openai audio models for a while. Asking to see what's a good way to switch onto webrtc support with Azure OpenAI realtime models? I do not see currently how we can do that on documentation.

For OpenAI, we have to connect with:

https://api.openai.com/v1/realtime/sessions
https://api.openai.com/v1/realtime

Wonder what is the equivalent url to connect to webrtc sessions using Azure OpenAI models?

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,922 questions
{count} vote

Accepted answer
  1. SriLakshmi C 4,390 Reputation points Microsoft External Staff
    2025-03-24T02:15:57.6033333+00:00

    Hello LeetGPT,

    The Azure OpenAI Realtime API enables real-time audio interactions but does not natively support WebRTC connections. Instead, it depends on client-side integrations to manage the transmission and reception of audio streams in real time. The API is not designed to directly connect to end-user devices, including those utilizing WebRTC.

    At present, the official documentation does not specify a URL for integrating WebRTC sessions with Azure OpenAI models. The primary approach involves using the Realtime API through a secure WebSocket connection to the /realtime endpoint of your Azure OpenAI resource.

    Please refer this Realtime API (Preview) reference, How to use the GPT-4o Realtime API for speech and audio (Preview).

    I hope this information helps.  

    Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues. 

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.