你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

VoiceAgentAudioOutputConfig interface

语音代理的输出音频配置。 提供者专用字段由以下 voice_type方式选择:

  • openai:voice 和 speed。
  • azure-standard: voice, voice_locale, speed, voice_temperaturecustom_lexicon_url, custom_text_normalization_url, prefer_locales。volumestylepitch
  • azure-custom:除 style,custom_voice_endpoint_id外加 外的所有azure-standard域。
  • azure-personal:除 style,personal_voice_model外加 外的所有azure-standard域。
  • avatar-voice-sync:除 和 之外的所有azure-standard字段 ,加personal_voice_model;声音名称源自化身。stylevoice
  • azure-realtime-native:voice 和 speed。 format 适用于 output_audio_timestamp_types 所有声部类型。

属性

custom_lexicon_url

自定义发音词典的网址。 适用于 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

custom_text_normalization_url

自定义文本规范化配置的URL。 适用于 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

custom_voice_endpoint_id

Azure 自定义语音部署端点标识符。 仅当 voice_type 为 azure-custom 时适用。

format

输出音频格式。 适用于所有 voice_type 频率,默认为24 kHz PCM。

output_audio_timestamp_types

时间戳类型应随输出音频一起包含。 适用于所有 voice_type。

personal_voice_model

Azure 个人语音或化身语音模型。 仅当 voice_type 是 或 azure-personalavatar-voice-sync时才适用。

pitch

声音音调的调整。 适用于 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

prefer_locales

多语言合成的首选BCP-47位置。 适用于 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

speed

数值输出速度倍增器。 适用于所有已知 voice_type 值,默认为1。

style

说话的声音风格。 仅当 voice_type 为 azure-standard 时适用。

voice

声音名称或识别码。 适用于 openai、 azure-standard、 azure-custom、 azure-personalazure-realtime-native和 。 它不适用于 avatar-voice-sync,后者是从头像中获得声音名称的。

voice_locale

强制执行的BCP-47输出地点。 适用于 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

voice_temperature

声音变化、温度。 适用于 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

voice_type

语音实现。

volume

声音音量的调节。 适用于 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

属性详细信息

custom_lexicon_url

自定义发音词典的网址。 适用于 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

custom_lexicon_url?: string

属性值

string

custom_text_normalization_url

自定义文本规范化配置的URL。 适用于 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

custom_text_normalization_url?: string

属性值

string

custom_voice_endpoint_id

Azure 自定义语音部署端点标识符。 仅当 voice_type 为 azure-custom 时适用。

custom_voice_endpoint_id?: string

属性值

string

format

输出音频格式。 适用于所有 voice_type 频率,默认为24 kHz PCM。

format?: RealtimeAudioFormatsUnion

属性值

output_audio_timestamp_types

时间戳类型应随输出音频一起包含。 适用于所有 voice_type。

output_audio_timestamp_types?: "word"[]

属性值

"word"[]

personal_voice_model

Azure 个人语音或化身语音模型。 仅当 voice_type 是 或 azure-personalavatar-voice-sync时才适用。

personal_voice_model?: string

属性值

string

pitch

声音音调的调整。 适用于 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

pitch?: string

属性值

string

prefer_locales

多语言合成的首选BCP-47位置。 适用于 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

prefer_locales?: string[]

属性值

string[]

speed

数值输出速度倍增器。 适用于所有已知 voice_type 值,默认为1。

speed?: number

属性值

number

style

说话的声音风格。 仅当 voice_type 为 azure-standard 时适用。

style?: string

属性值

string

voice

声音名称或识别码。 适用于 openai、 azure-standard、 azure-custom、 azure-personalazure-realtime-native和 。 它不适用于 avatar-voice-sync,后者是从头像中获得声音名称的。

voice?: string

属性值

string

voice_locale

强制执行的BCP-47输出地点。 适用于 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

voice_locale?: string

属性值

string

voice_temperature

声音变化、温度。 适用于 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

voice_temperature?: number

属性值

number

voice_type

语音实现。

voice_type?: VoiceType

属性值

volume

声音音量的调节。 适用于 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

volume?: string

属性值

string