Skip to content

feat: Add Azure OpenAI Realtime API support for transcription (STT)#4476

Open
jack-jackhui wants to merge 5 commits intofastrepl:mainfrom
jack-jackhui:pr/azure-openai-support
Open

feat: Add Azure OpenAI Realtime API support for transcription (STT)#4476
jack-jackhui wants to merge 5 commits intofastrepl:mainfrom
jack-jackhui:pr/azure-openai-support

Conversation

@jack-jackhui
Copy link

This PR adds support for Azure OpenAI Realtime transcription API (speech-to-text).

This complements PR #4222 which added Azure support for LLM (chat/summarization).

Changes

  • Detect Azure OpenAI endpoints by host (.openai.azure.com)
  • Use transcription_session.update message format for Azure (instead of session.update)
  • Do not include deployment in WebSocket URL (Azure rejects it with 400)
  • Add api-key header support for Azure authentication
  • Store Azure state in adapter for proper message formatting

Technical Details

Azure OpenAI Realtime API differs from standard OpenAI in several ways:

  1. Session message format: Uses transcription_session.update instead of session.update
  2. WebSocket URL: Must not include deployment name in path
  3. Authentication: Uses api-key header instead of Bearer token

Tested with Azure AI Foundry deployment.

- Detect Azure OpenAI endpoints by host (.openai.azure.com)
- Use transcription_session.update message format for Azure
- Do not include deployment in WebSocket URL (Azure rejects it)
- Add api-key header support for Azure authentication
- Store Azure state in adapter for proper message formatting
@netlify
Copy link

netlify bot commented Mar 10, 2026

👷 Deploy request for hyprnote pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 496f20a

@netlify
Copy link

netlify bot commented Mar 10, 2026

Deploy Preview for hyprnote-storybook canceled.

Name Link
🔨 Latest commit 496f20a
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/69afe70674aa580008ef483c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant