public class SpeechLoadGrammarCommand extends AbstractAgiCommand
Available since Asterisk 1.6.
SpeechUnloadGrammarCommand,
SpeechActivateGrammarCommand,
Serialized Form| Constructor and Description |
|---|
SpeechLoadGrammarCommand(String name,
String path)
Creates a new SpeechLoadGrammarCommand that loads the grammer from the given path and
makes it available under the given name.
|
| 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.
|
String |
getPath()
Returns the path to the grammar.
|
void |
setName(String name)
Sets the name of the grammar, used to activate the gammer later.
|
void |
setPath(String path)
Sets the path to the grammar.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic SpeechLoadGrammarCommand(String name, String path)
name - the name of the grammar, used to activate the gammer later.path - the path to the grammar.public String getName()
public void setName(String name)
name - the name of the grammar.public String getPath()
public void setPath(String path)
path - the path to the grammar.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2022. All rights reserved.