VoiceAgentVoiceConfig interface

語音輸出設定。 內嵌子代理直接將其作為語音覆蓋,而會話層級的輸出音訊設定則延伸了它。 提供者專屬欄位由以下 voice_type方式選擇:

  • openai: voice 以及 speed。
  • azure-standard: voice, , voice_locale, speedprefer_localesvoice_temperaturecustom_text_normalization_urlstylecustom_lexicon_urlpitch, , volume, 。
  • azure-custom:除 style,加custom_voice_endpoint_id外的所有azure-standard欄位 。
  • azure-personal:除 style,加personal_voice_model外的所有azure-standard欄位 。
  • avatar-voice-sync:除 voice 和 style之外personal_voice_model的所有azure-standard欄位;聲音名稱是從頭像衍生而來。
  • azure-realtime-native: voice 以及 speed。

屬性

custom_lexicon_url

自訂發音詞典的網址。 適用於 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

custom_text_normalization_url

自訂文字正規化設定的網址。 適用於 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

custom_voice_endpoint_id

Azure 自訂語音部署端點識別碼。 僅在 voice_type 為 azure-custom 時適用。

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-customazure-personal、 azure-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

自訂文字正規化設定的網址。 適用於 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

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

語音實作。

voice_type?: VoiceType

屬性值

volume

聲音音量的調整。 適用於 azure-standard、 azure-custom、 azure-personal和 avatar-voice-sync。

volume?: string

屬性值

string