From a7f08a0ebd6e3fb51d7ea4a546771c1bf8b9b02c Mon Sep 17 00:00:00 2001 From: localadministrator Date: Mon, 13 Apr 2026 03:30:45 +0000 Subject: [PATCH] Update voiceai-server.js --- voiceai-server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/voiceai-server.js b/voiceai-server.js index 67d9bb4..e2268f1 100644 --- a/voiceai-server.js +++ b/voiceai-server.js @@ -51,7 +51,7 @@ app.post('/respond',async(req,res)=>{ }); const t=new twilio.twiml.VoiceResponse(); t.say({voice:'Polly.Joanna-Neural'},'One moment please.'); - t.pause({length:2}); + t.pause({length:1}); t.redirect({method:'POST'},'https://voice.onsethost.com/check?sid='+sid+'&attempt=0'); res.type('text/xml');res.send(t.toString()); }); @@ -71,7 +71,7 @@ app.post('/check',async(req,res)=>{ t.say({voice:'Polly.Joanna-Neural'},'Thank you for calling. Goodbye!'); t.hangup(); } else if(attempt<20){ - t.pause({length:2}); + t.pause({length:1}); t.redirect({method:'POST'},'https://voice.onsethost.com/check?sid='+sid+'&attempt='+(attempt+1)); } else { t.say({voice:'Polly.Joanna-Neural'},'I apologize for the delay. Please call back shortly.');