TTS 提示配置
📖 返回主文档
使用 OpenAI 的 TTS 引擎配置文本到语音 (TTS) 提示。
相关文档
核心文档
集成与使用
提示配置
您可以在配置中定义提示,然后使用文本到语音生成这些提示。
您可以在拨号计划中使用这些提示与 playback 命令。
对于提示,我们可以定义语气、语言、口音等的“指令”,并选择语音。TTS 引擎使用 OpenAI 的文本到语音引擎,您可以从 openai.fm 测试。
config :tas,
...
prompts: %{
voice: "alloy",
instructions: "Speak with a prim, British accent.",
response_format: "wav",
recordings: [
%{
text:
"You do not have sufficient credit to make that call, please topup your service and then try again ",
path: "/sounds/en/us/callie/misc/8000/out_of_credit.wav"
},
%{
text: "The destination you have called is unabled to be reached",
path: "/sounds/en/us/callie/misc/8000/unable_to_be_reached.wav"
},
%{
text: "Your call is being transferred to emergency services",
path: "/sounds/en/us/callie/misc/8000/emergency_services_transfer.wav"
}
]
}