Larson Technical Services: Voice Technology Consulting

Exercise 7.1

Identify words and phrases for a yes/no grammar by using each of the following techniques:

A. Construct two lists of words by writing down all of the words you can think of that mean “yes” and all of the words you can think of that mean “no.”

B. Ask two friends to repeat (A)

C. Conduct a simple wizard of Oz experiment with ten subjects by asking them a yes/no question and recording their responses.

D. Create a simple VoiceXML program that asks a caller five yes/no questions, and records the caller responses (use the tag). Encourage ten subjects to call the application and capture their responses.


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

<!-- Exercise 7.1.d  program to solicit answers to yes/no quesitons   -->   

<form id = "data_collection">    

<block>
     <prompt>
          please answer the following question by speaking the answer
               <break size="small"/>
     </prompt>
</block>

<record name="answer_1" 
          maxtime="10s" dtmfterm="true" beep="true" finalsilence="1s">
               <prompt> Is four plus four equal eight? </prompt>
</record>

<record name="answer_2" 
          maxtime="10s" dtmfterm="true" beep="true" finalsilence="1s">
               <prompt> Is three plus two equal six? </prompt>
</record>

<record name="answer_3" 
          maxtime="10s" dtmfterm="true" beep="true" finalsilence="1s">
               <prompt> Does the month of February have thirty one days? </prompt>
</record>

<record name="answer_4" 
          maxtime="10s" dtmfterm="true" beep="true" finalsilence="1s">
               <prompt> Does the month of January have thirty one days </prompt>
</record>

<record name="answer_5" 
          maxtime="10s" dtmfterm="true" beep="true" finalsilence="1s">
               <prompt> Do you approve of the new european currency, the euro? </prompt>
</record>  

<block>
     <prompt>
          Thank you for answering these questions.
          Goodbye
               <break size="small"/>
     </prompt>
     <submit next="write_answers_to_disk.cgi" 
               namelist="answer_1 answer_2 answer_3 answer_4 answer_5" />
</block>

</form> 
</vxml>

F. Compare the lists from (A) – (D). Order the techniques by the effort expended to obtain the lists. Order the techniques by the number of words each technique produces. Recommend a general approach for constructing a list of words and phrases for a grammar.

G. Retrieve the yes/no grammars from web sites with reusable grammars. (See the companion web site for a list of companies supplying reusable grammars.) Are there words in their grammars that are missing from your lists? Are there words in your list that are missing form their grammars? Do you recommend any changes in the general approach you recommended in (F)?

Name URL Reusable
Grammars
Yes/No
Grammar
BeVocal Café www.bevocal.com - yes, yeah, yup, yep. yano, nope
Hey Anita FreeSpeech www.heyanita.com freespeech.heyanita.com
/samples/grammar.asp
yes, yeah, yup, sure, okay, correct, rightno, nope
VoiceGenie Developer Workshop www.voicegenie.com developer.voicegenie.com
/vg_grammar.php
yes right sure okay yup correct true yeahno incorrect wrong false nope
Voxeo Community www.voxeo.com - -

Return to the Instructor’s Page

Comments are off for this post