public interface SpeechMapGeneratorIfc
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALTERNATE_NAME
Alternate name for command token in
AbstractMenuAction , used in case user specifies wrong command in
speech. |
static java.lang.String |
SPEECH_COMMAND_MAP
RootPane client property name for an implementation of this interface, defining
localized spoken command strings to AbstractMenuActions to carry out those commands.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCurrentGrammarName()
Get the name for the custom grammar that should be used now.
|
java.lang.String[] |
getGrammarNames()
Get the names for the custom grammars that this generator can provide.
|
java.util.Map<java.lang.String,AbstractMenuAction> |
getSpeechCustomGrammar(java.lang.String grammarName)
Get the current map of voice commands to actions
|
static final java.lang.String SPEECH_COMMAND_MAP
static final java.lang.String ALTERNATE_NAME
AbstractMenuAction
, used in case user specifies wrong command in
speech.java.lang.String[] getGrammarNames()
java.lang.String getCurrentGrammarName()
java.util.Map<java.lang.String,AbstractMenuAction> getSpeechCustomGrammar(java.lang.String grammarName)
grammarName
- String name of grammar to fetch