انتقل إلى المحتوى الرئيسي

تكوين موجه TTS

📖 العودة إلى الوثائق الرئيسية

تكوين لموجهات النص إلى كلام (TTS) باستخدام محرك TTS من OpenAI.

الوثائق ذات الصلة

الوثائق الأساسية

التكامل والاستخدام


تكوين الموجهات

يمكنك تعريف الموجهات في التكوين التي يتم إنشاؤها بعد ذلك باستخدام النص إلى كلام.

يمكنك بعد ذلك استخدام هذه في خطة الاتصال الخاصة بك مع أوامر 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"
}
]
}