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 | 自訂發音詞典的網址。 適用於 |
| custom_text_normalization_url | 自訂文字正規化設定的網址。 適用於 |
| custom_voice_endpoint_id | Azure 自訂語音部署端點識別碼。 僅在 |
| format | 輸出音訊格式。 適用於所有 |
| output_audio_timestamp_types | 時間戳記類型,應隨輸出音訊附帶。 適用於所有 |
| personal_voice_model | Azure 個人語音或虛擬化身語音模型。 僅當 |
| pitch | 聲音音調調整。 適用於 |
| prefer_locales | 多語言合成的首選 BCP-47 地點。 適用於 |
| speed | 數值輸出速度倍增器。 適用於所有已知 |
| style | 聲音說話的風格。 僅在 |
| voice | 聲音名稱或識別碼。 適用於 |
| voice_locale | 強制執行的BCP-47輸出地點。 適用於 |
| voice_temperature | 聲音變化、溫度。 適用於 |
| voice_type | 語音實作。 |
| volume | 聲音音量的調整。 適用於 |
屬性詳細資料
custom_lexicon_url
自訂發音詞典的網址。 適用於 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。
custom_lexicon_url?: string
屬性值
string
custom_text_normalization_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-customazure-personal、 azure-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
volume
聲音音量的調整。 適用於 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。
volume?: string
屬性值
string