public class SpeechActivateGrammarCommand extends AbstractAgiCommand
Activates a grammar.
SpeechLoadGrammarCommand,
SpeechDeactivateGrammarCommand,
Serialized Form| Constructor and Description |
|---|
SpeechActivateGrammarCommand(String name)
Creates a new SpeechActivateGrammarCommand that activates the given grammar.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
String |
getName()
Returns the name of the grammar.
|
void |
setName(String name)
Sets the name of the grammar.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic SpeechActivateGrammarCommand(String name)
name - the name of the grammar.public String getName()
public void setName(String name)
name - the name of the grammar.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2024. All rights reserved.