Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
FREEDOM251

Freedom251 › Blog › MAI-Transcribe-2-Streaming

How to Stream Speech Transcription in Real Time with Microsoft MAI-Transcribe-2

By Freedom251 Team · · 4 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Microsoft’s real-time transcription endpoint is named MAI-Transcribe-2-Streaming. It accepts live audio over a WebSocket connection and returns transcript updates as events. The key to a correct live display is treating delta text as finalized text to append, while treating intermediate text as a provisional suffix to replace.

Release caveat: Microsoft Learn labels the capability public preview, says it has no SLA, and does not recommend it for production workloads. Check the current Realtime API guide and model overview before building around it.

As an Amazon Associate I earn from qualifying purchases.

What you need before streaming

For the Realtime API, Microsoft documents these prerequisites: an Azure subscription, a Microsoft Foundry resource in a supported region, and a deployed MAI-Transcribe-2-Streaming model. The Realtime API guide is the reference for the endpoint, messages and event sequence: Use MAI-Transcribe-2-Streaming with the Realtime API.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You also need a live audio source and a client that can open a WebSocket. A microphone is one option; an existing audio stream or recording can be used instead. Microsoft’s documentation does not require a particular microphone model.

#1 Best Overall
TONOR Conference Microphone for PC, USB Microphone for Win & Mac, G11 | Omnidirectional Condenser Mic with 190 cm/74inch Cable, Plug&Play, Desktop PC & Laptop for Teleconference, Court Reporter
  • Omnidirectional Microphone - It is not a Speaker or Speakerphone, it is a condenser microphone. The microphone has an omnidirectional pickup pattern with a pickup distance of 11.5 ft, making it easy to capture the most subtle sounds from 360° directions and transmit the sound more loud and clear. Participants can hear each other without raising their voices.
  • Made for Conferences - This microphone is perfect for small or medium meetings over an internet network by using Skype/GoToMeeting/WebEx/Hangouts/Fuze/VoIP/Zoom and other softwares. You can also use it for court reports, seminars, remote training, business negotiations, video chats, etc.
  • Plug & Play, No Drivers Required - The microphone is compatible with all operating systems - both Windows and macOS. You just need to plug the microphone to start recording. If there is no response after inserting the mic, please go to the microphone setting of your computer and select the mic as the INPUT device.
  • Convenient Mute Button - Quickly mute/unmute your microphone. The built-in blue indicator light for checking whether the USB microphone is working.
  • Well Designed Cable - The microphone is constructed of sturdy and metal material and the base is fitted with an anti-slip mat which keeps it stable on desktop during use. It is small, convenient and does not require much space when in use. Connected with a 1.8m nylon shielded wire, it effectively eliminates signal interferences to achieve the best recording results.

How to stream speech transcription with the Realtime API

  1. Connect to the endpoint. Open a WebSocket to wss://{your_resource_name}.services.ai.azure.com/mai/v1/realtime. The Microsoft guide shows intent=transcription in the request URI. Authenticate with a Microsoft Entra bearer token or an API key; the guide documents an API key in the connection header or as a query-string key.
  2. Configure the session before sending audio. Send a session.update message for a transcription session, specifying the deployed model name, MAI-Transcribe-2-Streaming. Set the input audio format to raw mono signed little-endian PCM16 at either 16,000 or 24,000 samples per second. This is PCM audio data, not a WAV file: do not include a WAV header.
  3. Choose language behavior. Set the language field to null to allow automatic language detection, or provide a language code as a hint. Microsoft says unrecognized values are treated as unset. In this interface, turn_detection and noise_reduction support only null. Session settings cannot be changed after the first audio append, so configure them before streaming.
  4. Append audio as it arrives. Send nonempty base64-encoded PCM16 bytes in input_audio_buffer.append messages. Microsoft recommends small chunks—for example, 10–20 ms—to reduce latency. Larger chunks lower network overhead but can increase the delay before transcript updates. Do not expect one acknowledgement or transcript event for each append: an append can produce no transcript event or several.
  5. Commit at a pause or recording end. When the speaker reaches a natural pause or the audio source ends, send input_audio_buffer.commit. The resulting completed event contains the full final transcript since the previous commit.

How to handle partial and final transcript events

Keep finalized text separate from the live, replaceable hypothesis. In the MAI-specific event flow, delta carries newly finalized text; append it exactly as delivered. intermediate carries a provisional suffix; replace the previous provisional suffix with the latest one rather than appending it. Do not add or strip spaces from delta text, as Microsoft cautions that doing so can corrupt the transcript.

Build the displayed transcript

  1. Maintain an accumulated string of finalized delta text.
  2. Maintain a separate string for the latest intermediate suffix. Replace this value whenever a new intermediate event arrives.
  3. Render the live view as the finalized text followed by the current provisional suffix.
  4. When a completed event arrives after a commit, use its full transcript for the committed segment and clear the provisional suffix for that segment.

For example, if the finalized text is “Please send the” and the latest intermediate suffix is “updated file,” display “Please send the updated file.” If a later intermediate event revises that suffix to “updated report,” replace only the provisional portion. When more finalized delta text arrives, append it as delivered; do not treat the earlier intermediate text as finalized just because it appeared on screen.

Rank #2
Sale
CMTECK USB Computer Microphone G009, Noise-Cancelling Recording Desktop Mic for PC/Laptop for Online Chatting, Home Studio, Podcasting, Gaming, Skype, YouTube with Mute Function(Windows/Mac)
  • 【Crystal Clear Audio Quality】Our Omnidirectional pattern condenser microphone accurately captures your voice, making it perfect for dictation, online classrooms, and more.
  • 【Active Noise-Cancelling】Come in CMTECK CCS2.0 SMART CHIP with Omnidirectional Polar Pattern, which can effectively block the background noise. The pop filter prevents plosives from overloading the microphone, ensuring only your voice is heard.7
  • 【Convenient Mute Button with LED Indicator】You can quickly mute/un-mute the microphone with the Mute Button and the built-in LED light lets you know the working status(Greenlight: Connected; Red light: Mute mode).
  • 【Easy to use】 No drivers needed, just plug and record without external power supply, directly connect the microphone to a USB compatible device, well compatible with Windows(7, 8 and 10), Mac OS and PS4 (NOT compatible with Raspberry Pi/Linux/Android)
  • 【Mini size with Adjustable Gooseneck】Adopted flexible and adjustable gooseneck metal pipe, easily adjust position 360 degrees to suit user comfort. The compact and stable base maximizes your desktop space.

Realtime API or Azure Speech SDK?

Microsoft documents two integration paths. The WebSocket API offers direct protocol control; the Azure Speech SDK is the managed-client option for developers who want the library to handle connection management, retries and audio streaming. Both paths support intermediate and final transcription results. See Microsoft’s overview and Azure Speech SDK guide.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Consideration Realtime API Azure Speech SDK
Integration style Direct WebSocket connection to the Realtime API endpoint Managed client library for transcription streaming
Connection behavior Your application owns connection behavior and protocol handling Microsoft positions the SDK as handling connection management and retries
Best fit An application with a compatible WebSocket client or a need for direct protocol control An application that benefits from a managed client and its supported platform setup
Documented version or region detail Realtime guide lists Sweden Central, Central US and South India as available; East US 2 is coming soon SDK guide lists Azure Speech SDK v1.52.0 as a prerequisite and lists Southeast Asia in place of South India

The SDK version and regional availability can change. Microsoft’s two integration guides list different regions, so verify the current table for your exact integration and resource type rather than assuming that a region listed for one path is supported by the other.

Rank #3
JOUNIVO USB Microphone, 360 Degree Adjustable Gooseneck Design, Mute Button & LED Indicator, Noise-Canceling Technology, Plug & Play, Compatible with Windows & MacOS
  • 360 Degree Position Adjustable Gooseneck Design --Plug and play USB microphone Pick up the sound from 360-degree with high sensitivity, in the best possible location for sound to your PC gaming, dragon voice dictation, and talk to Cortana
  • Mute Button & LED Indicator --One-click to mute/unmute your microphone for pc, Build-in LED indicator tells you the working status at any time
  • Intelligent Noise-Canceling Tech --Premium omnidirectional condenser microphone with noise-canceling technology can pick up your clear voice and reduce background noise and echo
  • USB Plug&Play(1.8/6ft USB Cable) -- No driver required. Just need to plug & play for the microphone to start recording, well compatible with Windows(7, 8, 10 and 11) and macOS. (NOT compatible with Xbox/Raspberry Pi/Android)
  • Solid Construction--Adopting premium metal pipe and heavy-duty ABS stand to make sure that you will be satisfied with our computer mic quality

Session limits and language support

Microsoft’s Realtime API guide says a session can last up to one hour. The model documentation states support for 60 languages. Use automatic detection or an explicit language hint as appropriate; consult the current documentation for language details rather than assuming the same behavior for every language or configuration.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Before using it for a production application

The public-preview status is a material deployment constraint: Microsoft says the feature has no SLA and is not recommended for production workloads. For experimentation or evaluation, design the client to handle connection interruptions and evolving preview behavior, and check Microsoft’s current guidance for availability in the region where your resource is deployed.

Best Value
FIFINE K669B USB Microphone, Condenser Recording Mic for Vocals, Meeting | Metal Cardioid Laptop Mic for MAC OS, Windows, Voice Overs, Streaming, Online Meeting and YouTube Videos
  • [Convenient Setup] Plug and play recording USB microphone for PC, with 5.9-Foot USB cable included for computer PC laptop, is connected directly to USB-A port for recording music, computer singing or podcast. The office condenser microphone for computer is easy to use and install. (NOT compatible with Xbox and Phones)
  • [Durable Metal Design] Solid sturdy metal construction design, the computer microphone for Zoom meetings with stable tripod stand is convenient when you are doing voice overs or livestreams on YouTube. Durable material extends the service life of the voice-over microphone.
  • [Mic Volume Knob] Gaming condenser USB mic compatible for PS4 with additional volume knob itself has a louder or quieter adjustment and is more sensitive. Your voice would be heard well enough through the zoom microphone USB when gaming, skyping or voice recording. Also, you can adjust your volume to zero and protect your privacy.
  • [Widely Use] USB-powered design, the condenser microphone for recording no need the 48v Phantom power supply, works well with Cortana, Discord, voice chat and voice recognition. The podcast microphone for Mac, with USB-B to USB-A/C cable, is compatible with desktop, laptop or PS4/PS5, which meets most of your daily recording needs.
  • [Clear Output Voice] Cardioid condenser microphone for PC captures your voice properly, producing clear smooth and crisp sound. Great computer recording mic for gamers/streamers/youtubers focus on the main source and reduces background noise. The streaming microphone does the job well for broadcast ,OBS and teamspeak.
Rank #4
ANSTEN Conference USB Microphone, Omnidirectional Condenser PC Mic
  • Clear Sound and Noise Reduction: Update Computer Conference Microphone is equipped with high-density sound-absorbing cotton, which provides high-fidelity crystal sound and clear pickup. The built-in smart chip can effectively block background noise, eliminate echoes, and make the sound clearer and smoother, such as face-to-face conversations
  • 360° Omnidirectional Microphone, Small but Powerful: This USB omnidirectional microphone can easily capture 360 ​​degree omnidirectional weak signals, reproduce your voice vividly, ideal for 4-6 people on conference calls. (with 1.8 m / 6 ft USB cable) Please be aware that this conference microphone can only be used as a microphone, it has no speaker function
  • USB Free Driver, Easy to Use: True plug and play, no need to download anything. Connect one end to the computer (laptop or desktop) and the other end (Type-C) to the microphone. This USB microphone with mute button, press the mute button to quickly mute/unmute, perfect for online group meetings and distance education
  • Wide Use and Compatibility: This USB conference microphone has multi-purpose uses, such as online meeting/teaching, and business/home video calling, ideal for small group meetings and virtual learning. This laptop microphone works with Mac OS X Windows 7/8/10 systems. Please be aware that it is not compatible with Raspberry Pi/Linux/Android/Xbox
  • Portable Design: You can easily carry this handy microphone in your pocket or business bag and take it anywhere. Note: This model not with speaker

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

MAI-Transcribe-2-StreamingMicrosoft AzureRealtime APIspeech transcriptionWebSocket

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.