[voicelive] Replace deprecated models in live tests#49085
Merged
Conversation
…me in live tests Per https://developers.openai.com/api/docs/deprecations, gpt-4o-realtime, gpt-4o-realtime-preview, and gpt-4o-realtime-preview-2025-06-03 are deprecated (shutdown 2026-05-07). Replace with the rolling alias gpt-realtime across live test parameter providers and consolidate the three duplicate MODEL_GPT_4O_REALTIME* constants in VoiceLiveTestBase into a single MODEL_GPT_REALTIME. Also simplify the WHISPER_1 vs AZURE_SPEECH selector in getSpeechRecognitionSetting to match the new model prefix.
Member
Author
|
/azp run python - azure-ai-voicelive - tests |
|
No pipelines are associated with this pull request. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the VoiceLive live test suite to stop using deprecated “gpt-4o--realtime” model identifiers and instead use the newer gpt-realtime model naming, keeping the tests aligned with currently supported model IDs.
Changes:
- Replaced deprecated realtime model strings/constants with
gpt-realtimeacross multiple live tests. - Simplified
VoiceLiveTestBasemodel constants (remove old realtime variants; introduceMODEL_GPT_REALTIME). - Updated speech recognition setting selection logic to key off the new realtime model prefix.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/voicelive/azure-ai-voicelive/src/test/java/com/azure/ai/voicelive/livetests/VoiceLiveVoicePropertiesTests.java | Updates parameterized model IDs to use gpt-realtime. |
| sdk/voicelive/azure-ai-voicelive/src/test/java/com/azure/ai/voicelive/livetests/VoiceLiveTurnDetectionTests.java | Switches realtime model constant usage; updates one multilingual case label; retains Python-parity comment that needs refresh. |
| sdk/voicelive/azure-ai-voicelive/src/test/java/com/azure/ai/voicelive/livetests/VoiceLiveTranscriptionTests.java | Replaces deprecated realtime model usage with gpt-realtime for transcription scenarios. |
| sdk/voicelive/azure-ai-voicelive/src/test/java/com/azure/ai/voicelive/livetests/VoiceLiveToolCallTests.java | Moves tool-call test coverage from gpt-4o-realtime* to MODEL_GPT_REALTIME; retains one Python-parity comment that needs refresh. |
| sdk/voicelive/azure-ai-voicelive/src/test/java/com/azure/ai/voicelive/livetests/VoiceLiveTestBase.java | Removes deprecated realtime model constants, introduces MODEL_GPT_REALTIME, and updates transcription-model selection logic. |
| sdk/voicelive/azure-ai-voicelive/src/test/java/com/azure/ai/voicelive/livetests/VoiceLiveConversationTests.java | Updates conversation test model parameterization to gpt-realtime. |
| sdk/voicelive/azure-ai-voicelive/src/test/java/com/azure/ai/voicelive/livetests/VoiceLiveAudioTests.java | Updates audio live test model parameterization to gpt-realtime. |
| sdk/voicelive/azure-ai-voicelive/src/test/java/com/azure/ai/voicelive/livetests/VoiceLiveAudioFormatTests.java | Updates audio format matrix to use gpt-realtime where applicable. |
Member
Author
|
/azp run java - azure-ai-voicelive - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
Author
|
/azp run java - azure-ai-voicelive - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
Author
|
/azp run java - azure-ai-voicelive - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
Author
|
/azp run java - azure-ai-voicelive - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
emilyjiji
approved these changes
May 7, 2026
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.
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines