Skip to content

Conversation

ShivangiReja
Copy link
Collaborator

Fixes: #543

The method TurnDetectionOptions.CreateSemanticVoiceActivityTurnDetectionOptions was originally marked as internal to simplify the previous release and allow for iterative development.

This PR updates the method to public, making it accessible to users who want to configure conversation sessions using semantic VAD (Voice Activity Detection).

[CodeGenType("RealtimeResponseUsage")] public partial class ConversationTokenUsage { }
[CodeGenType("RealtimeToolType")] public readonly partial struct ConversationToolKind { }
[CodeGenType("DotNetRealtimeVoiceIds")] public readonly partial struct ConversationVoice { }
[CodeGenType("RealtimeSemanticVadTurnDetectionEagerness")] public readonly partial struct SemanticEagernessLevel { }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we can use a visitor to generate these rather than having to maintain stubs here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I totally agree with this. We’ve been maintaining separate generator stubs per client, and switching to a visitor would make it much easier to manage these going forward. I’ve created an issue to track this: #550, and we’ll look into addressing it as part of that. Thanks for the suggestion!

namespace OpenAI.Realtime
{
[Experimental("OPENAI002")]
public readonly partial struct SemanticEagernessLevel : IEquatable<SemanticEagernessLevel>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay! Extensibile!

@ShivangiReja ShivangiReja merged commit aa0baf8 into openai:main Jul 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants