We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Choice Tag Usage

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
reu
Posts: 8
Joined: Mon Dec 06, 2004 10:08 am

Choice Tag Usage

Post by reu »

Hi,

I have some clarification using chioce tag and speech recognition,
Following is the code used,
....
....
<menu id="mainmenu">
<prompt bargein="false" version="1.0">
<voice name="anjali" gender="female" age="18">
<prosody volume="loud" rate="90">
<?php echo("Hello ".$sub_row["custname"]." this is abc calling ordering today?."); ?>
<?php echo("If Yes , say Yes or press One on your touch tone phone If No, say No or
press Two on your touch tone phone "); ?>
</prosody>
</voice>
<enumerate/>
</prompt>

<choice dtmf="1" next="#good">
Yes
</choice>
<choice dtmf="2" next="#bad">
No
</choice>
</menu>


<form id="good">
<block>
.....
.....

1.My requirement is to accept the user response two ways, both keypress
in the phone or verbal. At a time user can select any of the option they like without
any choices. How can i handle this with my code? Whether the above given code satisfy
both requirement?.

2.How i can avoid playing the text present inside the choise tag?. I do't want to play
the text inside the choise tag.Or how i can apply the prosody tag with volume =0 to avoid
hearing this voice to the callee?.Please advice if any other method available?

3.If the user failed to input the key/choice the plum will play back a message
"Sorry, I didn't understand you.". How I can change the voice of the playback message?

4.I am using the choice tag to active the speech recognition, Its very difficult
to catch the matching voice input by the system even if the user tried 4 more time
simply saying "Yes".Any grammer usage will improve?. How I can improve the speech recognition?


Thanks
Reu.

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR code to improve speech recognition

Post by support »

Hello,

1. I'm not entirely sure what you are asking, could you please clairify.

2. You need to remove the <enumerate/> tag, this tag is used to enumerate each of the menu options as a short cut so you do not have to.

3. These cases are caught by both the <noinput> and <nomatch> blocks.

4. One means of improving speech recognition is to have a non-bargeable prompt at the beginning of your VoiceXML document followed by a bargeable prompt. This will allow the IVR system to better profile the background noise and will improve the reliablity of detecting the speech.

Here is a slightly modified version of your IVR code that implements the items mentioned above.

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">

<menu id="mainmenu">
  <prompt version="1.0" bargein="false">
    <voice name="anjali" gender="female" age="18">
      <prosody volume="loud" rate="90">
        Hello Matt, this is abc calling ordering today?
      </prosody>
    </voice>
  </prompt>
  <prompt version="1.0">
    <voice name="anjali" gender="female" age="18">
      <prosody volume="loud" rate="90">
        If Yes , say Yes or press One on your touch tone phone.
        If No, say No or press Two on your touch tone phone.
      </prosody>
    </voice>
  </prompt>
  <choice dtmf="1" next="#good">Yes</choice>
  <choice dtmf="2" next="#bad">No</choice>
</menu>

<form id="good">
  <block>
    <prompt>
      <voice name="anjali" gender="female" age="18">
        <prosody volume="loud" rate="90">
          You said Yes or pressed 1.
        </prosody>
      </voice>
    </prompt>
  </block>
</form>

<form id="bad">
  <block>
    <prompt>
     <voice name="anjali" gender="female" age="18">
        <prosody volume="loud" rate="90">
          You said No or pressed 2.
        </prosody>
      </voice>
    </prompt>
  </block>
</form>
</vxml>
Hope This Helps!

Plum Support

Post Reply