jason
12/02/2024, 12:26 AMVapi
12/02/2024, 12:29 AMVapi
12/02/2024, 12:29 AMVapi
12/02/2024, 12:30 AMjason
12/02/2024, 12:30 AMjason
12/03/2024, 2:40 AMjason
12/03/2024, 2:59 AMjason
12/03/2024, 5:09 AMjason
12/04/2024, 12:24 AMjason
12/04/2024, 2:31 AMjason
12/04/2024, 10:17 AMShubham Bajaj
12/04/2024, 10:21 PMjson
voicemailDetection: {
provider: "twilio",
voicemailDetectionTypes: [
"machine_start",
"machine_end_beep",
"machine_end_silence",
"unknown",
"machine_end_other"
],
enabled: true,
machineDetectionTimeout: 15,
machineDetectionSpeechThreshold: 2500,
machineDetectionSpeechEndThreshold: 2050,
machineDetectionSilenceTimeout: 2000
}
Also you can learn about all the best practices with Voicemail from here https://www.notion.so/vapi/Handling-Voicemail-in-Calls-142008c8393f80f1abb8de8ecb17842djason
12/05/2024, 1:51 AMjason
12/05/2024, 7:59 PMjason
12/05/2024, 10:11 PMjason
12/06/2024, 6:36 AMShubham Bajaj
12/06/2024, 8:05 AMlogs
šµ 21:40:51:318 [user LOG] Twilio detected "machine_end_other" in 15000ms
šµ 21:40:51:318 Voicemail Detected. Message Length: 0 Message:
šµ 21:40:51:318 Live Call Manager Ending...(customer-did-not-answer)
@jason as visible from logs it took 15 seconds to identify if voicemail because of voicemail nature.
You require to change your startSpeakingPlan according to the call nature to wait for little longer before starting speaking out.jason
12/08/2024, 11:41 PMjason
12/10/2024, 11:52 PMShubham Bajaj
12/11/2024, 7:34 PMlogs
šµ 23:37:16:629 [user LOG] Endpointing timeout 0ms (rule: smart
)
šµ 23:37:17:131 [user LOG] Twilio detected "machine_end_other" in 6000ms
changes
@jason can you try one call with smartEndpointing set to false.
1. Increase Timeout
Bump machineDetectionTimeout
from 6 to 8 seconds to allow more time for detection:
json
"machineDetectionTimeout": 8
2. Adjust Silence and Speech Thresholds
- Lower machineDetectionSilenceTimeout
to 1500ms for quicker silence detection:
json
"machineDetectionSilenceTimeout": 1500
- Set machineDetectionSpeechThreshold
to 2000ms and machineDetectionSpeechEndThreshold
to 1500ms for smoother speech recognition:
json
"machineDetectionSpeechThreshold": 2000
"machineDetectionSpeechEndThreshold": 1500
json
"voicemailDetection": {
"enabled": true,
"provider": "twilio",
"machineDetectionTimeout": 8,
"voicemailDetectionTypes": [
"machine_start",
"machine_end_beep",
"machine_end_silence",
"unknown",
"machine_end_other"
],
"machineDetectionSilenceTimeout": 1500,
"machineDetectionSpeechThreshold": 2000,
"machineDetectionSpeechEndThreshold": 1500
}
jason
12/12/2024, 4:31 AMShubham Bajaj
12/14/2024, 10:50 AMShubham Bajaj
12/14/2024, 10:50 AMjson
"tools": [ { "type" : "voicemail"}]