ProjectsAgentsModelFactory.VoiceAgentAudioInputConfiguration Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Input audio configuration for a voice agent.
public static Azure.AI.Projects.Agents.VoiceAgentAudioInputConfiguration VoiceAgentAudioInputConfiguration(OpenAI.Realtime.RealtimeAudioFormat format = default, Azure.AI.Projects.Agents.VoiceAgentNoiseReduction noiseReduction = default, Azure.AI.Projects.Agents.VoiceAgentTurnDetectionConfiguration turnDetection = default, Azure.AI.Projects.Agents.VoiceAgentEchoCancellation echoCancellation = default, Azure.AI.Projects.Agents.VoiceAgentInputTranscription transcription = default);
static member VoiceAgentAudioInputConfiguration : OpenAI.Realtime.RealtimeAudioFormat * Azure.AI.Projects.Agents.VoiceAgentNoiseReduction * Azure.AI.Projects.Agents.VoiceAgentTurnDetectionConfiguration * Azure.AI.Projects.Agents.VoiceAgentEchoCancellation * Azure.AI.Projects.Agents.VoiceAgentInputTranscription -> Azure.AI.Projects.Agents.VoiceAgentAudioInputConfiguration
Public Shared Function VoiceAgentAudioInputConfiguration (Optional format As RealtimeAudioFormat = Nothing, Optional noiseReduction As VoiceAgentNoiseReduction = Nothing, Optional turnDetection As VoiceAgentTurnDetectionConfiguration = Nothing, Optional echoCancellation As VoiceAgentEchoCancellation = Nothing, Optional transcription As VoiceAgentInputTranscription = Nothing) As VoiceAgentAudioInputConfiguration
Parameters
- format
- OpenAI.Realtime.RealtimeAudioFormat
The input audio format.
- noiseReduction
- VoiceAgentNoiseReduction
Input noise reduction. Set to null to disable.
- turnDetection
- VoiceAgentTurnDetectionConfiguration
Turn (end-of-speech) detection. Server-side turn detection is enabled by default; set to null to disable it, in which case the client must trigger responses manually.
- echoCancellation
- VoiceAgentEchoCancellation
Optional server-side echo cancellation settings.
- transcription
- VoiceAgentInputTranscription
Asynchronous input-audio transcription. Set to null to disable transcription.
Returns
A new VoiceAgentAudioInputConfiguration instance for mocking.