Sprog

ProjectsAgentsModelFactory.VoiceAgentAudioOutputConfig Method

Definition

Output audio configuration for a voice agent. Provider-specific fields are selected by voice_type:

  • `openai`: `voice` and `speed`.
  • `azure-standard`: `voice`, `voice_locale`, `speed`, `voice_temperature`, `custom_lexicon_url`,
`custom_text_normalization_url`, `prefer_locales`, `style`, `pitch`, and `volume`.
  • `azure-custom`: all `azure-standard` fields except `style`, plus `custom_voice_endpoint_id`.
  • `azure-personal`: all `azure-standard` fields except `style`, plus `personal_voice_model`.
  • `avatar-voice-sync`: all `azure-standard` fields except `voice` and `style`, plus `personal_voice_model`; the voice name is derived from the avatar.
  • `azure-realtime-native`: `voice` and `speed`.
`format` and `output_audio_timestamp_types` apply to every voice type.
public static Azure.AI.Projects.Agents.VoiceAgentAudioOutputConfig VoiceAgentAudioOutputConfig(OpenAI.Realtime.RealtimeAudioFormat format = default, string voice = default, Azure.AI.Projects.Agents.VoiceType? voiceType = default, string voiceLocale = default, float? speed = default, float? voiceTemperature = default, Uri customLexiconUrl = default, Uri customTextNormalizationUrl = default, System.Collections.Generic.IEnumerable<string> preferLocales = default, string style = default, string pitch = default, string volume = default, string customVoiceEndpointId = default, string personalVoiceModel = default, System.Collections.Generic.IEnumerable<Azure.AI.Projects.Agents.VoiceAgentAudioTimestampType> outputAudioTimestampTypes = default);
static member VoiceAgentAudioOutputConfig : OpenAI.Realtime.RealtimeAudioFormat * string * Nullable<Azure.AI.Projects.Agents.VoiceType> * string * Nullable<single> * Nullable<single> * Uri * Uri * seq<string> * string * string * string * string * string * seq<Azure.AI.Projects.Agents.VoiceAgentAudioTimestampType> -> Azure.AI.Projects.Agents.VoiceAgentAudioOutputConfig
Public Shared Function VoiceAgentAudioOutputConfig (Optional format As RealtimeAudioFormat = Nothing, Optional voice As String = Nothing, Optional voiceType As Nullable(Of VoiceType) = Nothing, Optional voiceLocale As String = Nothing, Optional speed As Nullable(Of Single) = Nothing, Optional voiceTemperature As Nullable(Of Single) = Nothing, Optional customLexiconUrl As Uri = Nothing, Optional customTextNormalizationUrl As Uri = Nothing, Optional preferLocales As IEnumerable(Of String) = Nothing, Optional style As String = Nothing, Optional pitch As String = Nothing, Optional volume As String = Nothing, Optional customVoiceEndpointId As String = Nothing, Optional personalVoiceModel As String = Nothing, Optional outputAudioTimestampTypes As IEnumerable(Of VoiceAgentAudioTimestampType) = Nothing) As VoiceAgentAudioOutputConfig

Parameters

format
OpenAI.Realtime.RealtimeAudioFormat

The output audio format. Applies to every voice_type and defaults to 24 kHz PCM.

voice
String

The voice name or identifier. Applies to openai, azure-standard, azure-custom, azure-personal, and azure-realtime-native. It does not apply to avatar-voice-sync, which derives the voice name from the avatar.

voiceType
Nullable<VoiceType>

The voice implementation.

voiceLocale
String

The enforced BCP-47 output locale. Applies to azure-standard, azure-custom, azure-personal, and avatar-voice-sync.

speed
Nullable<Single>

The numeric output speed multiplier. Applies to all known voice_type values and defaults to 1.

voiceTemperature
Nullable<Single>

The voice variation temperature. Applies to azure-standard, azure-custom, azure-personal, and avatar-voice-sync.

customLexiconUrl
Uri

The URL of a custom pronunciation lexicon. Applies to azure-standard, azure-custom, azure-personal, and avatar-voice-sync.

customTextNormalizationUrl
Uri

The URL of a custom text-normalization configuration. Applies to azure-standard, azure-custom, azure-personal, and avatar-voice-sync.

preferLocales
IEnumerable<String>

Preferred BCP-47 locales for multilingual synthesis. Applies to azure-standard, azure-custom, azure-personal, and avatar-voice-sync.

style
String

The voice speaking style. Applies only when voice_type is azure-standard.

pitch
String

The voice pitch adjustment. Applies to azure-standard, azure-custom, azure-personal, and avatar-voice-sync.

volume
String

The voice volume adjustment. Applies to azure-standard, azure-custom, azure-personal, and avatar-voice-sync.

customVoiceEndpointId
String

The Azure custom-voice deployment endpoint identifier. Applies only when voice_type is azure-custom.

personalVoiceModel
String

The Azure personal or avatar voice model. Applies only when voice_type is azure-personal or avatar-voice-sync.

outputAudioTimestampTypes
IEnumerable<VoiceAgentAudioTimestampType>

Timestamp kinds to include with output audio. Applies to every voice_type.

Returns

A new VoiceAgentAudioOutputConfig instance for mocking.

Applies to