custom voice idle message doesn't work

The problem is: From VAPI doesn't send me the request to my api custom voice.
The other request is ok.

This is the call id = 019a58c4-bbe2-7ee4-97eb-2f35d3c47d54

This is my config for custom voice:

if (clientConfig?.squad?.isCustomVoice || sessionData?.isCustomVoice) {
console.log("Usamos custom voice");
finalAssistant.voice = {
provider: "custom-voice",
server: {
url: https://api-channel-voice-${process.env.projectId}.europe-southwest1.run.app/api/synthesize,
credentialId: process.env.VAPI_CUSTOM_VOICE_CREDENTIAL_ID,
headers: {
'x-cache-id': sessionData.idCache,
'x-session-id': sessionData.sessionId
},
timeoutSeconds: 12
},
cachingEnabled: false,
chunkPlan: {
enabled: true
},
fallbackPlan: {
voices: [
{
"provider": "11labs",
"voiceId": "21m00Tcm4TlvDq8ikWAM"
}
]
}
};
finalAssistant.firstMessageMode = "assistant-speaks-first-with-model-generated-message";
finalAssistant.hooks = [
{
on: "customer.speech.timeout",
options: {
timeoutSeconds: 12, // dispara el idle a los 6s de silencio del usuario
triggerMaxCount: 3, // hasta 3 veces durante la llamada
triggerResetMode: "onUserSpeech"
},
do: [{
type: "say",
exact: ["¿Sigues ahí?", "¿Puedo ayudarte con algo más?"]
}]
}
];
}
image.png
Was this page helpful?