Assistant saying greeting message in voice message
# support
d
I have an assistant that makes outbound calls. After reaching the voicemail, the assistant played the greeting message instead of the voicemail message. Also, the message was played twice. Please let me know what I should do to fix this issue. Call ID: a9426052-14fa-4eff-bcd1-bcc045badb9e
v
It sounds like your assistant is having some trouble with voicemail detection and message playback. Here are some steps you can take to resolve the issue: 1. **Check Voicemail Detection Settings**: Make sure that voicemail detection is enabled in your assistant's configuration. You can set
voicemailDetection.enabled
to
true
to ensure it recognizes when a voicemail system answers the call. 2. **Review Message Configuration**: Ensure that the
voicemailMessage
is correctly set up in your assistant's configuration. This message should be what you want the assistant to say when it reaches voicemail. 3. **Debug Repetitions**: Look into the
clientMessages
field to ensure there are no duplicate messages configured. Also, check your event handling to prevent any loops that might cause the assistant to repeat messages. 4. **Examine Call Logic**: Review the logic of your outbound call flow to ensure that it correctly transitions to the voicemail message after detecting voicemail. 5. **Test Different Scenarios**: Run tests to see if the issue occurs consistently or only under specific conditions. This can help identify if there are particular triggers causing the problem. 6. **Adjust Timing Settings**: If the assistant is starting the greeting message too quickly, you may need to fine-tune the
startSpeakingPlan
to ensure it waits appropriately before speaking. If you follow these steps and the issue persists, you might want to check the logs for any errors or anomalies during the call. Let me know if you need further assistance! 😊 Sources: - [Voicemail Detection Configuration](https://discord.com/channels/1211482211119796234/1211483291191083018/1336424026486079559) - [Troubleshooting Repeated Messages](https://discord.com/channels/1211482211119796234/1211483291191083018/1333406713931632731) - [Configuring Greeting and Voicemail Messages](https://discord.com/channels/1211482211119796234/1211483291191083018/1334597630235512956)
d
Thank you Duckie. I made some changes and now voice message is cut off in the middle. Are there any best settings that I can use for voice mail messages. Call ID: 46ad34b3-aa70-4e23-84c7-0852ff672724
v
It sounds like you're still having some issues with your voicemail messages being cut off. Here are some best practices and settings you can use to improve the performance of your voicemail messages: 1. **Enable Voicemail Detection**: Make sure you have
voicemailDetection.enabled
set to
true
in your configuration. This helps the assistant recognize when it reaches a voicemail system. 2. **Adjust Detection Settings**: Fine-tune the voicemail detection parameters, such as: - `machineDetectionTimeout`: Set this to a reasonable time to allow the assistant to determine if it's reached voicemail. -
machineDetectionSpeechThreshold
and `machineDetectionSilenceTimeout`: These settings can help the assistant better understand when to start and stop speaking. 3. **Set a Clear Voicemail Message**: Ensure that your
voicemailMessage
is concise and clear. For example:
Copy code
javascript
   voicemailMessage: "Hello, you've reached our voicemail. Please leave a message after the beep."
4. **Timing Adjustments**: If the message is being cut off, consider adjusting the
startSpeakingPlan
to ensure the assistant waits appropriately before speaking. This can help prevent it from interrupting itself. 5. **Test with Different Scenarios**: Run tests to see how the assistant performs under various conditions. This can help identify if specific settings are causing issues. 6. **Review Logs**: If the problem persists, check the logs for any errors or anomalies that might indicate why the message is being cut off. By following these guidelines, you should be able to enhance the performance of your voicemail messages. Let me know if you need any more help! 😊 Sources: - [Voicemail Detection Configuration](https://discord.com/channels/1211482211119796234/1211483291191083018/1336424026486079559) - [Configuring Greeting and Voicemail Messages](https://discord.com/channels/1211482211119796234/1211483291191083018/1334597630235512956)
d
I made more changes and still the voice mail is not fully recorded. Call gets disconnected in the middle of leaving voice mail Call ID: a2bcd773-2f70-49aa-8fa7-4e5aa9d25e45 & 00abffc2-6340-4bcd-b2c4-a91b70e0dff4
k
Hey @Dhina, can you try another call with the following config:
Copy code
{
  "enabled": true,
  "provider": "twilio",
  "machineDetectionTimeout": 45,        // Increased from 30 to allow more detection time
  "voicemailDetectionTypes": [
    "machine_end_beep",
    "machine_end_silence"
  ],
  "machineDetectionSilenceTimeout": 7000,  // Adjusted from 10000 to balance detection
  "machineDetectionSpeechThreshold": 3000,  // Increased from 2400 to better detect machines
  "machineDetectionSpeechEndThreshold": 2500  // Increased from 1200 to handle greeting gaps
}
\- machineDetectionTimeout: Increased to 45 seconds (max is 59), This gives more time for the voicemail detection to complete. \- machineDetectionSpeechEndThreshold: Increased to 2500ms (range 500-5000), This handles the gaps in voicemail greetings better, preventing false end detection. \- machineDetectionSpeechThreshold: Increased to 3000ms (range 1000-6000), Better distinguishes between human and machine responses. \- machineDetectionSilenceTimeout: Adjusted to 7000ms (range 2000-10000), Provides balanced silence detection without excessive waiting. The increased speech end threshold prevents cutting off during normal pauses in greetings.
d
Still the same issue. The call gets disconnected after stating the dollar amount. The assistant needs to say the callback number. Usually, the call lasts for 30 seconds, and the assistant leaves a voice message for 10 seconds only. If I manually leave the voice message, I am able to leave the full message, including the balance and callback number, which takes longer than 10 seconds
Call ID: ed5741c5-6069-4521-84b2-346d6bddf245
Just to clarify voice message is cutting off at the end not the beginning e.g. Voice message should have been "This is a courtesy call from XXX on behalf of YYYY reminding you that you have a balance of . Please contact us at to make a payment. Thank you. Have a great day!" But the actual voice message in the phone was "This is a courtesy call from XXX on behalf of YYYY reminding you that you have a balance of ." Call ID: ed5741c5-6069-4521-84b2-346d6bddf245
k
🔵 14:35:05:107 Say Request Saying 228... (say: This is a courtesy call from Glenwood Systems on behalf of doctor office Mujeeb Khaliq reminding you that you have a balance of $313.30. Please contact us at eight hundred 288 3351 to make a payment. Thank you. Have a great day!) @Dhina This issue was also reported previously that the voicemail message sender used to cut off the call as they can only store a limited message length. It happens rarely tho. As it's coming on the called person side we cannot do much but you can try reducing the voicemail message according to their acceptable length.
d
This happens consistently. The call lasts around 30 seconds, and the voicemail lasts for 11 to 12 seconds. If I call the number manually, I am able to leave the full message More Call IDs: 892f6908-2d45-4b1d-83cd-8a45b0844494 1100e96b-9e03-4f51-b192-384057db8bb5 2a6298c8-496d-427f-bf08-52f32d84b2f7 58007323-28d9-48b0-9444-4cb14ecce4f3
s
@Dhina Thanks for sharing more calls. I'll investigate and get back to you with an update.
d
Thank you.
k
Hey can you try using gemini as your voicemail detector it will solve the issue.
d
VAPI - Any updates?
k
Did you get a chance to try out Google Voicemail Detector? It doesn't have the same issue as Twilio's one.
s
@Dhina Try 1-2 calls using Google Voicemail Detector, and your issue will be resolved. It is coming from twilio side, where your message is being half-played.
@Dhina let me know how it goes for you.
d
I tried with Google voice mail detector. I didn't receive any voice at all. VAPI log says "pipeline error" Call ID: b3503fe4-f7b2-4112-890f-aeee191fbf7c ee9da709-9953-4de7-9b59-1b651b1703da f4e343a9-7924-486e-99ff-ad1049808b56
k
🔵 17:28:10:936 Live Call Manager Ending...(pipeline-error-playht-request-timed-out) @Dhina can you try it with some other voice provider? Its PlayHT which is taking time to respond back and eventually resulted in errors. It is also possible that it might be a huge spike of network requests on their side which resulted in the following error so I will suggest try 1 or 2 call with PlayHT if it still does not work switch to some other voice provider.