Delay command

The Delay command delays the next command in the response OzML with a specified time (in seconds). It is a perfect command to insert pauses between Speak commands to make the spoken text easier to understand for the client.

Parameters

Parameter name Example value Description Mandatory
Time 5 Time to delay other commands, expressed in seconds. yes

OzML example

In the OzML script below, you can see how the Delay command splits the Speak commands for a better understanding of the text that the speak engine read out yor you.

<?xml version="1.0"?>
<Response>
    <Delay>1</Delay>
    <Speak>Congratulations, this is your first OzML Response command.</Speak>
    <Delay>2</Delay>
    <Speak>Have a nice day!</Speak>
    <Hangup></Hangup>
</Response>

More information