Can I use my own grammar for a <choice> instead of the

Answers to common Plum DEV questions

Moderators: admin, support

  • Author
  • Message
Offline

support

  • Posts: 3628
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Can I use my own grammar for a <choice> instead of the

PostFri Jun 13, 2003 2:16 pm

Yes. If you specify a <grammar> element within a <choice>, that grammar will be used instead of the automatically generated grammar.

Code: Select all
<menu>
  <prompt>Say sports, weather, or news</prompt>
  <choice next="#sports">
    <grammar>sports</grammar>
      One
  </choice>
  <choice next="#weather">
    <grammar>weather</grammar>
      Two
  </choice>
  <choice next="#news">
    <grammar>news</grammar>
      Three
  </choice>
</menu>

<form id="sports">
  <block>
    Sports
  </block>
</form>
<form id="weather">
  <block>
    Weather
  </block>
</form>
<form id="news">
  <block>
    News
  </block>
</form>

Return to Plum DEV FAQs

Who is online

Users browsing this forum: No registered users and 1 guest

cron