|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.asteriskjava.fastagi.command.AbstractAgiCommand
org.asteriskjava.fastagi.command.SpeechRecognizeCommand
public class SpeechRecognizeCommand
Plays back given prompt while listening for speech and dtmf.
Available since Asterisk 1.6.
Constructor Summary | |
---|---|
SpeechRecognizeCommand(java.lang.String prompt,
int timeout)
Creates a new SpeechRecognizeCommand that plays the given prompt and listens for for speech and dtmf. |
|
SpeechRecognizeCommand(java.lang.String prompt,
int timeout,
int offset)
Creates a new SpeechRecognizeCommand that plays the given prompt and listens for for speech and dtmf. |
Method Summary | |
---|---|
java.lang.String |
buildCommand()
Returns a string suitable to be sent to asterisk. |
int |
getOffset()
Returns the offset samples to skip when playing the prompt. |
java.lang.String |
getPrompt()
Returns the prompt to play. |
int |
getTimeout()
Returns the maximum recognition time in milliseconds. |
void |
setOffset(int offset)
Sets the offset samples to skip when playing the prompt. |
void |
setPrompt(java.lang.String prompt)
Sets the prompt to play. |
void |
setTimeout(int timeout)
Sets the maximum recognition time in milliseconds. |
Methods inherited from class org.asteriskjava.fastagi.command.AbstractAgiCommand |
---|
escapeAndQuote, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpeechRecognizeCommand(java.lang.String prompt, int timeout)
prompt
- the prompt to play.timeout
- the maximum recognition time in milliseconds.public SpeechRecognizeCommand(java.lang.String prompt, int timeout, int offset)
prompt
- the prompt to play.timeout
- the maximum recognition time in milliseconds.offset
- the offset samples to skip when playing the prompt.Method Detail |
---|
public java.lang.String getPrompt()
public void setPrompt(java.lang.String prompt)
prompt
- the prompt to play.public int getTimeout()
public void setTimeout(int timeout)
timeout
- the maximum recognition time in milliseconds, or -1 for no timeout.public int getOffset()
public void setOffset(int offset)
offset
- the offset samples to skip when playing the prompt.public java.lang.String buildCommand()
AgiCommand
buildCommand
in interface AgiCommand
buildCommand
in class AbstractAgiCommand
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |