Skip to content

feat: Add Azure OpenAI Realtime API support for transcription#4193

Closed
jack-jackhui wants to merge 1 commit intofastrepl:mainfrom
jack-jackhui:pr/azure-openai-support
Closed

feat: Add Azure OpenAI Realtime API support for transcription#4193
jack-jackhui wants to merge 1 commit intofastrepl:mainfrom
jack-jackhui:pr/azure-openai-support

Conversation

@jack-jackhui
Copy link

This PR adds support for Azure OpenAI Realtime transcription API.

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: Deployment/model must NOT be in the URL (goes in session message instead)
  3. Authentication: Uses api-key header instead of Authorization: Bearer

Testing

  • Added unit tests for Azure host detection
  • Added unit tests for Azure WebSocket URL building
  • Tested against Azure OpenAI Realtime transcription endpoint

@netlify
Copy link

netlify bot commented Feb 24, 2026

👷 Deploy request for hyprnote pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit af0c68e

@netlify
Copy link

netlify bot commented Feb 24, 2026

Deploy Preview for hyprnote-storybook canceled.

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

@jack-jackhui jack-jackhui force-pushed the pr/azure-openai-support branch 2 times, most recently from 6c0a8e7 to af26d22 Compare February 27, 2026 04:12
- 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
@jack-jackhui jack-jackhui force-pushed the pr/azure-openai-support branch from af26d22 to af0c68e Compare March 1, 2026 22:02
@jack-jackhui
Copy link
Author

Closing - Azure OpenAI support was merged in #4222. Thanks!

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