[VoiceLive] Initial Preview of the VoiceLive SDK#47115
Merged
Conversation
added 13 commits
October 13, 2025 14:32
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces the initial VoiceLive SDK for Java, implementing a WebSocket-based real-time voice interaction API with support for bidirectional audio streaming, function calling, and avatar integration.
Key Changes:
- Generated TypeSpec-based model classes for session management, conversation handling, and response processing
- Support for server VAD (Voice Activity Detection) and turn detection
- JSON serialization/deserialization for all model types with discriminated polymorphic handling
- Comprehensive event type system for server-client communication
Reviewed Changes
Copilot reviewed 130 out of 175 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| SessionUpdate.java | Base class for polymorphic server events with custom discriminator handling using JsonReaderHelper |
| SessionResponse.java | Response model containing output items, usage statistics, and configuration |
| SessionResponseItem.java | Polymorphic base for conversation items (messages, function calls) |
| ResponseStatusDetails.java | Polymorphic base for response status with discriminated subtypes (failed, incomplete, cancelled) |
| Various SessionUpdate* classes | Concrete event types for audio, transcription, animation, and conversation updates |
| ServerEventType.java | Enum defining all possible server event discriminator values |
| ServerVadTurnDetection.java | VAD configuration for automatic turn detection |
| assets.json | Asset repository configuration for test resources |
...live/src/main/java/com/azure/ai/voicelive/models/SessionUpdateConversationItemTruncated.java
Show resolved
Hide resolved
...celive/src/main/java/com/azure/ai/voicelive/models/SessionUpdateConversationItemDeleted.java
Show resolved
Hide resolved
...live/src/main/java/com/azure/ai/voicelive/models/SessionUpdateConversationItemRetrieved.java
Show resolved
Hide resolved
...live/src/main/java/com/azure/ai/voicelive/models/SessionUpdateConversationItemTruncated.java
Show resolved
Hide resolved
...celive/src/main/java/com/azure/ai/voicelive/models/SessionUpdateConversationItemDeleted.java
Show resolved
Hide resolved
...live/src/main/java/com/azure/ai/voicelive/models/SessionUpdateConversationItemRetrieved.java
Show resolved
Hide resolved
added 2 commits
October 28, 2025 17:36
srnagar
reviewed
Oct 29, 2025
sdk/ai/azure-ai-voicelive/src/samples/java/com/azure/ai/voicelive/VoiceAssistantSample.java
Outdated
Show resolved
Hide resolved
added 2 commits
October 29, 2025 17:46
Member
Author
|
linked to API view approval: https://spa.apiview.dev/review/c8cee54dfb664a41b3bd132f7fc95d7c?activeApiRevisionId=8cd88b8380134b74a6674d024f4e49f6 |
JonathanGiles
approved these changes
Nov 2, 2025
Member
JonathanGiles
left a comment
There was a problem hiding this comment.
Approving for first preview release
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