Skip to contentSkip to navigationSkip to topbar
Rate this Page:

TwiML™ Voice: <Pause>


The <Pause> verb waits silently for a specific number of seconds. If <Pause> is the first verb in a TwiML document, Twilio will wait the specified number of seconds before picking up the call.


Verb Attributes

attributes page anchor

The <Pause> verb supports the following attributes that modify its behavior:

Attribute NameAllowed ValuesDefault Value
lengthinteger > 01 second

length

attributes-length page anchor

The 'length' attribute specifies how many seconds Twilio will wait silently before continuing on.


You can't nest any verbs within <Pause>, but you can nest the <Pause> verb within the following verbs:

  • <Gather>

Example 1: Simple pause

examples-1 page anchor

This example demonstrates using <Pause> to wait between two <Say> verbs.

Simple pause

simple-pause page anchor
Node.js
Python
C#
Java
PHP
Ruby

_11
const VoiceResponse = require('twilio').twiml.VoiceResponse;
_11
_11
_11
const response = new VoiceResponse();
_11
response.say('I will pause 10 seconds starting now!');
_11
response.pause({
_11
length: 10
_11
});
_11
response.say('I just paused 10 seconds');
_11
_11
console.log(response.toString());

Output

_10
<?xml version="1.0" encoding="UTF-8"?>
_10
<Response>
_10
<Say>I will pause 10 seconds starting now!</Say>
_10
<Pause length="10"/>
_10
<Say>I just paused 10 seconds</Say>
_10
</Response>

Example 2: Delayed pickup

examples-2 page anchor

This example demonstrates using <Pause> to delay Twilio for 5 seconds before accepting a call.

Node.js
Python
C#
Java
PHP
Ruby

_10
const VoiceResponse = require('twilio').twiml.VoiceResponse;
_10
_10
_10
const response = new VoiceResponse();
_10
response.pause({
_10
length: 5
_10
});
_10
response.say('Hi there.');
_10
_10
console.log(response.toString());

Output

_10
<?xml version="1.0" encoding="UTF-8"?>
_10
<Response>
_10
<Pause length="5"/>
_10
<Say>Hi there.</Say>
_10
</Response>


Rate this Page: