ProjectsAgentsModelFactory.VoiceAgentAudioInputConfig 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.VoiceAgentAudioInputConfig VoiceAgentAudioInputConfig(OpenAI.Realtime.RealtimeAudioFormat format = default, Azure.AI.Projects.Agents.VoiceAgentNoiseReduction noiseReduction = default, Azure.AI.Projects.Agents.VoiceAgentTurnDetectionConfig turnDetection = default, Azure.AI.Projects.Agents.VoiceAgentEchoCancellation echoCancellation = default, Azure.AI.Projects.Agents.VoiceAgentInputTranscription transcription = default);
static member VoiceAgentAudioInputConfig : OpenAI.Realtime.RealtimeAudioFormat * Azure.AI.Projects.Agents.VoiceAgentNoiseReduction * Azure.AI.Projects.Agents.VoiceAgentTurnDetectionConfig * Azure.AI.Projects.Agents.VoiceAgentEchoCancellation * Azure.AI.Projects.Agents.VoiceAgentInputTranscription -> Azure.AI.Projects.Agents.VoiceAgentAudioInputConfig
Public Shared Function VoiceAgentAudioInputConfig (Optional format As RealtimeAudioFormat = Nothing, Optional noiseReduction As VoiceAgentNoiseReduction = Nothing, Optional turnDetection As VoiceAgentTurnDetectionConfig = Nothing, Optional echoCancellation As VoiceAgentEchoCancellation = Nothing, Optional transcription As VoiceAgentInputTranscription = Nothing) As VoiceAgentAudioInputConfig
Parameters
- format
- OpenAI.Realtime.RealtimeAudioFormat
The input audio format.
- noiseReduction
- VoiceAgentNoiseReduction
Input noise reduction. Set to null to disable.
- turnDetection
- VoiceAgentTurnDetectionConfig
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 VoiceAgentAudioInputConfig instance for mocking.