|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvoicexml.implementation.red5.Red5SpokenInput
public final class Red5SpokenInput
Demo implementation for a synthesized output using the Red5 server.
| Constructor Summary | |
|---|---|
Red5SpokenInput()
|
|
| Method Summary | |
|---|---|
void |
activate()
|
void |
activateGrammars(Collection<GrammarImplementation<?>> grammars)
|
void |
addListener(SpokenInputListener listener)
|
void |
close()
|
void |
connect(ConnectionInformation client)
|
void |
deactivateGrammars(Collection<GrammarImplementation<?>> grammars)
|
void |
disconnect(ConnectionInformation client)
|
Collection<org.jvoicexml.xml.vxml.BargeInType> |
getSupportedBargeInTypes()
|
Collection<org.jvoicexml.xml.srgs.GrammarType> |
getSupportedGrammarTypes()
|
String |
getType()
|
URI |
getUriForNextSpokenInput()
|
boolean |
isBusy()
|
GrammarImplementation<?> |
loadGrammar(Reader reader,
org.jvoicexml.xml.srgs.GrammarType type)
|
void |
open()
|
void |
passivate()
|
void |
removeListener(SpokenInputListener listener)
|
void |
startRecognition(SpeechRecognizerProperties speech,
DtmfRecognizerProperties dtmf)
|
void |
stopRecognition()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Red5SpokenInput()
| Method Detail |
|---|
public String getType()
getType in interface ExternalResource
public void open()
throws NoresourceError
open in interface ExternalResourceNoresourceError
public void activate()
throws NoresourceError
activate in interface ExternalResourceNoresourceError
public void passivate()
throws NoresourceError
passivate in interface ExternalResourceNoresourceErrorpublic void close()
close in interface ExternalResourcepublic boolean isBusy()
isBusy in interface ExternalResource
public void connect(ConnectionInformation client)
throws IOException
connect in interface RemoteConnectableIOExceptionpublic void disconnect(ConnectionInformation client)
disconnect in interface RemoteConnectable
public void startRecognition(SpeechRecognizerProperties speech,
DtmfRecognizerProperties dtmf)
throws NoresourceError,
BadFetchError
startRecognition in interface InputDeviceNoresourceError
BadFetchErrorpublic void stopRecognition()
stopRecognition in interface InputDevicepublic void addListener(SpokenInputListener listener)
addListener in interface ObservableSpokenInputpublic void removeListener(SpokenInputListener listener)
removeListener in interface ObservableSpokenInput
public void activateGrammars(Collection<GrammarImplementation<?>> grammars)
throws BadFetchError,
UnsupportedLanguageError,
NoresourceError
activateGrammars in interface SpokenInputBadFetchError
UnsupportedLanguageError
NoresourceError
public void deactivateGrammars(Collection<GrammarImplementation<?>> grammars)
throws NoresourceError,
BadFetchError
deactivateGrammars in interface SpokenInputNoresourceError
BadFetchError
public URI getUriForNextSpokenInput()
throws NoresourceError,
URISyntaxException
getUriForNextSpokenInput in interface SpokenInputNoresourceError
URISyntaxExceptionpublic Collection<org.jvoicexml.xml.srgs.GrammarType> getSupportedGrammarTypes()
getSupportedGrammarTypes in interface SpokenInput
public GrammarImplementation<?> loadGrammar(Reader reader,
org.jvoicexml.xml.srgs.GrammarType type)
throws NoresourceError,
BadFetchError,
UnsupportedFormatError
loadGrammar in interface SpokenInputNoresourceError
BadFetchError
UnsupportedFormatErrorpublic Collection<org.jvoicexml.xml.vxml.BargeInType> getSupportedBargeInTypes()
getSupportedBargeInTypes in interface SpokenInput
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||