This repository has been archived by the owner on Aug 3, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add phone_type_choice grammar to Srec
Bug#232200 This grammar accepts the four phone types supported by the VoiceDialer: "home", "mobile", "work", and "other", along with "retry" and "exit". It is used when the voicedialer has determined which person to call, but is not yet sure which phone to call them on. Also get rid of some of the uneeded code from the boolean grammar. It was allowing for changes to be made at runtime, but that is not needed.
- Loading branch information
mah
committed
Feb 25, 2010
1 parent
5724a74
commit 18d902b
Showing
3 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1" ?> | ||
<grammar version="1.0" xml:lang="en-US" mode="voice" root="_phone_type_choice"> | ||
<!-- | ||
--> | ||
|
||
<rule id="_phone_type_choice" scope="public"> | ||
<one-of> | ||
<item>home <tag>MEANING='H'</tag></item> | ||
<item>mobile <tag>MEANING='M'</tag></item> | ||
<item>cell <tag>MEANING='M'</tag></item> | ||
<item>work <tag>MEANING='W'</tag></item> | ||
<item>other <tag>MEANING='O'</tag></item> | ||
<item>exit <tag>MEANING='X'</tag></item> | ||
<item>try again <tag>MEANING='R'</tag></item> | ||
<item>retry <tag>MEANING='R'</tag></item> | ||
</one-of> | ||
</rule> | ||
|
||
</grammar> |