Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 10, 2025

What does this PR do?

Migrates Speech LiveTests to use the recorded test infrastructure, enabling playback without live Azure resources.

Changes:

  • FastTranscriptionRecognizer: Replaced IHttpClientService with IHttpClientFactory per copilot instructions to enable proper test proxy recording support. Uses IHttpClientFactory.CreateClient() method for HTTP client instantiation.
  • SpeechCommandTests: Re-parented from CommandTestsBase to RecordedCommandTestsBase with sanitizers for:
    • Subscription IDs in URIs
    • Bearer tokens in Authorization headers
    • Cognitive Services endpoint hostnames in bodies
  • assets.json: Created with TagPrefix Azure.Mcp.Tools.Speech.LiveTests for recording management

Recordings will be populated separately per agent instructions.

GitHub issue number?

#1300

- Updated FastTranscriptionRecognizer to use CreateClient() instead of DefaultClient
- Re-parented SpeechCommandTests from CommandTestsBase to RecordedCommandTestsBase
- Added assets.json file for recording management
- Added sanitizers for subscription IDs, auth tokens, and cognitive services endpoints

Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate Azure.Mcp.Tools.Speech.LiveTests to recorded tests Migrate Azure.Mcp.Tools.Speech.LiveTests to recorded tests Dec 10, 2025
Copilot AI requested a review from scbedd December 10, 2025 00:50
…onRecognizer

Updated per copilot instructions to use IHttpClientFactory.CreateClient() for proper test proxy recording support.

Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
@scbedd
Copy link
Contributor

scbedd commented Dec 15, 2025

If you check out RealtimeTtsSynthesizer and RealtimeTranscriptionRecognizer they are both websockets, not recordable. I need to add a liveonly attribute for this for now.

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

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

2 participants