openai / openai-realtime-console

React app for inspecting, building and debugging with the Realtime API
MIT License
1.87k stars 630 forks source link

add suppot for azure oai realtime? #20

Open rdvo opened 3 weeks ago

rdvo commented 3 weeks ago

possible?

oalexdoda commented 3 weeks ago

Would love an example on this as well.

Closest resource I found is this: https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/audio-real-time?pivots=programming-language-javascript - not sure if it's there's any example for this repo

alielbekov commented 2 weeks ago

Would love an example on this as well.

Closest resource I found is this: https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/audio-real-time?pivots=programming-language-javascript - not sure if it's there's any example for this repo

This should work. or you can just change the web socket url with your Azure Realtime URL:

file: src/lib/realtime-api-beta/lib/api.js

const ws = new WebSocket('wss://<YOUR AZURE DEPLOYMENT URL>.openai.azure.com/openai/realtime?api-version=2024-10-01-preview&deployment=gpt-4o-realtime-preview&api-key=<YOUR AZURE API-KEY>' );

this helps you how to setup your URL:

AZURE repo readme

themass commented 1 week ago

i want to run this demo with azure url and key.

mynumu commented 1 day ago

Anyone get this working with azure?