Voice IVR
The following CXML code will answer an inbound voice call, playback a simple greeting message using Text-To-Speech and will wait for a vocal input or a keypad input.
Once the input is received, it will be submitted to the https://example.com/voiceIvrDemo
URL. When using <GATHER>
with speech
input, the spoken words will be
transcribed and submitted to the URL specified in the action
.
<Response>
<Gather action="https://example.com/voiceIvrDemo" input="dtmf speech">
<Say loop="3">For sales, say sales or press 1, for customer care say support or press 2.</Say>
</Gather>
<Say>We're sorry we couldn't help - please try again later.</Say>
<Hangup />
</Response>