From 18d902b732b0e834591fff49f36f9f8b174c61fa Mon Sep 17 00:00:00 2001 From: mah Date: Tue, 23 Feb 2010 15:41:45 -0800 Subject: [PATCH] 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. --- config/en.us/Android.mk | 3 ++- config/en.us/grammars/boolean.grxml | 5 ----- config/en.us/grammars/phone_type_choice.grxml | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 config/en.us/grammars/phone_type_choice.grxml diff --git a/config/en.us/Android.mk b/config/en.us/Android.mk index 309990d..9af1f12 100644 --- a/config/en.us/Android.mk +++ b/config/en.us/Android.mk @@ -46,7 +46,8 @@ srec_grammars : \ $(G2G_INSTALL_PATH)/lookup.g2g \ ALL_PREBUILT += $(G2G_INSTALL_PATH)/VoiceDialer.g2g \ - $(G2G_INSTALL_PATH)/boolean.g2g + $(G2G_INSTALL_PATH)/boolean.g2g \ + $(G2G_INSTALL_PATH)/phone_type_choice.g2g #--------------------------------------------------------------------------------- # Explicit rules. diff --git a/config/en.us/grammars/boolean.grxml b/config/en.us/grammars/boolean.grxml index e9fa199..edabd2d 100644 --- a/config/en.us/grammars/boolean.grxml +++ b/config/en.us/grammars/boolean.grxml @@ -10,14 +10,9 @@ yes MEANING='1' no MEANING='0' - - -__ROOT__ - - diff --git a/config/en.us/grammars/phone_type_choice.grxml b/config/en.us/grammars/phone_type_choice.grxml new file mode 100644 index 0000000..519fce2 --- /dev/null +++ b/config/en.us/grammars/phone_type_choice.grxml @@ -0,0 +1,19 @@ + + + + + + + home MEANING='H' + mobile MEANING='M' + cell MEANING='M' + work MEANING='W' + other MEANING='O' + exit MEANING='X' + try again MEANING='R' + retry MEANING='R' + + + +