How do I recognize a substring of a long phrase?

Answers to common Plum DEV questions

Moderators: admin, support

  • Author
  • Message
Offline

support

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

How do I recognize a substring of a long phrase?

PostFri Jun 13, 2003 1:56 pm

The Plum Voice Portal supports multiple speech recognition engines, and thus many grammar formats. The two main grammar formats are SRGS and JSGF. In both cases, substrings of the utterance are actively searched for.

So, in SRGS:
Code: Select all
<grammar type="application/srgs">
<rule id="action" scope="public">
  <one-of>
    <item>
      bases
    </item>
  </one-of>
</rule>
</grammar>


in JSGF:
Code: Select all
<grammar type="application/jsgf">( bases )</grammar>


In all of these cases the spoken utterance:
Code: Select all
"All your bases are belong to us"

Would match the grammar, with a hypothesis of "bases" and an unpredictable utterance.

Return to Plum DEV FAQs

Who is online

Users browsing this forum: No registered users and 1 guest