Saltar al contenido principal

Configuración del Prompt TTS

📖 Volver a la Documentación Principal

Configuración para los prompts de Texto a Voz (TTS) utilizando el motor TTS de OpenAI.

Documentación Relacionada

Documentación Principal

Integración y Uso


Configuración del Prompt

Puedes definir prompts en la configuración que luego se generan con Texto a Voz.

Puedes usar estos en tu dialplan con los comandos playback.

Para los prompts, podemos definir "instrucciones" para tono, idioma, acento, etc., y elegir la voz. El motor TTS utiliza el motor de texto a voz de OpenAI, que puedes probar en 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"
}
]
}