Use dedicated MAI transcription for dictation - #334042
Merged
Megan Rogge (meganrogge) merged 3 commits intoSep 3, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Voice routing changes unexpectedly, and stale socket errors can terminate a restarted dictation session.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Moves MAI dictation from Voice Mode’s shared socket to a dedicated transcription transport.
Changes:
- Adds endpoint derivation and a lifecycle-aware transcription client.
- Integrates authoritative MAI finals and bounded finalization.
- Adds focused endpoint, transport, and dictation tests.
File summaries
| File | Description |
|---|---|
voiceEndpoint.ts |
Resolves voice/transcription URLs and authentication. |
voiceClientService.ts |
Uses shared endpoint helpers. |
voiceCodeTranscriptionClient.ts |
Implements dedicated WebSocket transport. |
chatSpeechToTextService.ts |
Integrates MAI transcription and finalization. |
chat.shared.contribution.ts |
Registers the transcription service. |
voiceEndpoint.test.ts |
Tests endpoint handling. |
voiceCodeTranscriptionClient.test.ts |
Tests transport lifecycle and protocol. |
chatSpeechToTextService.test.ts |
Tests MAI integration and final selection. |
Review details
- Files reviewed: 8/8 changed files
- Comments generated: 4
- Review effort level: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Megan Rogge (meganrogge)
approved these changes
Sep 2, 2026
Megan Rogge (meganrogge)
previously approved these changes
Sep 2, 2026
Megan Rogge (meganrogge)
enabled auto-merge (squash)
September 2, 2026 18:34
auto-merge was automatically disabled
September 2, 2026 18:49
Head branch was pushed to by a user without write access
Megan Rogge (meganrogge)
approved these changes
Sep 2, 2026
Dmitriy Vasyura (dmitrivMS)
approved these changes
Sep 2, 2026
roblourens
approved these changes
Sep 2, 2026
Megan Rogge (meganrogge)
enabled auto-merge (squash)
September 3, 2026 15:19
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: c568e3e0-eabb-48db-84a4-a7976df7c474
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: c568e3e0-eabb-48db-84a4-a7976df7c474
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: c568e3e0-eabb-48db-84a4-a7976df7c474
Megan Rogge (meganrogge)
force-pushed
the
arthurcnops/mai-dictation-transcription
branch
from
September 3, 2026 15:20
e717706 to
f4c6b81
Compare
auto-merge was automatically disabled
September 3, 2026 15:20
Head branch was pushed to by a user without write access
Megan Rogge (meganrogge)
enabled auto-merge (squash)
September 3, 2026 15:20
Megan Rogge (meganrogge)
merged commit Sep 3, 2026
c5e2568
into
microsoft:main
34 of 60 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MAI dictation now uses the dedicated
/api/v1/realtime/transcriptionWebSocket instead of sharing Voice Mode's/voicesession.Fixes #332324.
This restores and adapts the dedicated transcription-client direction from #326228 by Mir Imad Ahmed.
Testing: