<Pause>

The <Pause> verb waits silently for a distinctive number of seconds.

Verb Attributes

Attribute
length optionalThe number of seconds SignalWire will pause silently before moving on. Defaults to 1s of wait time if no value is provided.

Nesting

No other verbs can be nested within <Pause>. However, <Pause> can be nested within a <Gather>.

Examples

A Simple Pause

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Say>Please wait one moment while I check that for you.</Say>
    <Pause length="8"/>
    <Say>Yes, we are open Monday through Friday.</Say>
</Response>
const { RestClient } = require('@signalwire/node')
const response = new RestClient.LaML.VoiceResponse()

response.say('Please wait one moment while I check that for you.')
response.pause({ length: 8 })
response.say('Yes, we are open Monday through Friday.')
console.log(response.toString())
<?php
  use SignalWire\LaML;
  $response = new LaML;

  $response->say('Please wait one moment while I check that for you.');
  $response->pause(array( 'length' => 8 ));
  $response->say('Yes, we are open Monday through Friday.');
  echo $response;
?>
using Twilio.TwiML;
using System;


class Example
{
    static void Main()
    {
        var response = new VoiceResponse();
        response.Say("Please wait one moment while I check that for you.");
        response.Pause(length: 8);
        response.Say("Yes, we are open Monday through Friday.");

        Console.WriteLine(response.ToString());;
    }
}
from signalwire.voice_response import VoiceResponse, Say, Pause

response = VoiceResponse()
response.say('Please wait one moment while I check that for you.')
response.pause(length=8)
response.say('Yes, we are open Monday through Friday.')

print(response)
require 'signalwire/sdk'

response = Signalwire::Sdk::VoiceResponse.new do |response|
  response.say(message: 'Please wait one moment while I check that for you.')
  response.pause(length: 10)
  response.say(message: 'Yes, we are open Monday through Friday.')
end

puts response.to_s

This illustrates the wait time between two statements.

Delaying a Response

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Pause length="3"/>
    <Say>Hello, how can I help you?</Say>
</Response>
const { RestClient } = require('@signalwire/node')
const response = new RestClient.LaML.VoiceResponse()

response.pause({ length: 3 })
response.say('Hello, how can I help you?')
console.log(response.toString())
<?php
  use SignalWire\LaML;
  $response = new LaML;

  $response->pause(array( 'length' => 3 ));
  $response->say('Hello, how can I help you?');
  echo $response;
?>
using Twilio.TwiML;
using System;


class Example
{
    static void Main()
    {
        var response = new VoiceResponse();
        response.Pause(length: 3);
        response.Say("Hello, how can I help you?");

        Console.WriteLine(response.ToString());;
    }
}
from signalwire.voice_response import VoiceResponse, Say, Pause

response = VoiceResponse()
response.pause(length=3)
response.say('Hello, how can I help you?')

print(response)
require 'signalwire/sdk'

response = Signalwire::Sdk::VoiceResponse.new do |response|
  response.pause(length: 3)
  response.say(message: 'Hello, how can I help you?')
end

puts response.to_s

SignalWire waits 3 seconds before answering a call.