Demo entry 6344819

my_ncl

   

Submitted by anonymous on Jan 25, 2017 at 13:52
Language: XML. Code size: 1.4 kB.

<!--### places.sgrs ###-->
<grammar xmlns="http://www.w3.org/2001/06/grammar">
 <rule id="downtown">downtown</rule>
 <rule id="copacabana beach">beach</rule>
 <rule id="dancing_club">dancing club</rule>
 <rule id="imperial_garden">imperial garden</rule>
</grammar>

<!--### voice commands features ###-->
<body>
...
  <input id="asr_places" type="application/srgs+xml" src="places.sgrs">
    <area label="downtown" />
    <area label="beach" />
    ...
  </input>
  <media id="audio_choice" src="audio_downtown_or_beach.ssml"/>
  <link xconnector="onBeginOnUserCanSpeakStart">
    <bind role="onBegin" component="intro" interface="choice_moment"/>
    <bind role="start" component="asr_places" interface="downtown" />
    <bind role="start" component="asr_places" interface="beach"/>
  </link>
  <link xconnector="onBeginOnUserCanHearStart">
    <bind role="onBegin" component="intro" interface="choice_moment"/>
    <bind role="start" component="audio_choice" interface="downtown"/>
  </link>
  <link xconnector="onRecognizeStart">
    <bind role="onRecognize" component="asr_places" interface="beach"/>
    <bind role="start" component="videoBeach"/>
  </link>
  <link xconnector="onRecognizeStart">
    <bind role="onRecognize" component="asr_places" interface="downtown"/>
    <bind role="start" component="videoDowntown"/>
  </link>
...
<body>

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).