|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvoicexml.implementation.jsapi20.Jsapi20SpokenInput
public final class Jsapi20SpokenInput
Audio input that uses the JSAPI 2.0 to address the recognition engine.
Handle all JSAPI calls to the recognizer to make JSAPI transparent to the interpreter.
| Constructor Summary | |
|---|---|
Jsapi20SpokenInput(javax.speech.recognition.RecognizerMode defaultDescriptor,
InputMediaLocatorFactory mediaLocatorFactory)
Constructs a new audio input. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Jsapi20SpokenInput(javax.speech.recognition.RecognizerMode defaultDescriptor,
InputMediaLocatorFactory mediaLocatorFactory)
defaultDescriptor - the default recognizer mode descriptor.mediaLocatorFactory - the media locator factory| Method Detail |
|---|
public void setMediaLocator(URI locator)
locator - the media locator to use.
public void open()
throws NoresourceError
open in interface ExternalResourceNoresourceErrorpublic void close()
close in interface ExternalResourcepublic void addListener(SpokenInputListener inputListener)
addListener in interface ObservableSpokenInputpublic void removeListener(SpokenInputListener inputListener)
removeListener in interface ObservableSpokenInputpublic Collection<org.jvoicexml.xml.vxml.BargeInType> getSupportedBargeInTypes()
getSupportedBargeInTypes in interface SpokenInput
public GrammarImplementation<javax.speech.recognition.RuleGrammar> loadGrammar(Reader reader,
org.jvoicexml.xml.srgs.GrammarType grammarType)
throws NoresourceError,
BadFetchError,
UnsupportedFormatError
loadGrammar in interface SpokenInputNoresourceError
BadFetchError
UnsupportedFormatError
public void activateGrammars(Collection<GrammarImplementation<? extends Object>> grammars)
throws BadFetchError,
UnsupportedLanguageError,
NoresourceError
activateGrammars in interface SpokenInputBadFetchError
UnsupportedLanguageError
NoresourceError
public void deactivateGrammars(Collection<GrammarImplementation<? extends Object>> grammars)
throws BadFetchError
deactivateGrammars in interface SpokenInputBadFetchError
public void startRecognition(SpeechRecognizerProperties speech,
DtmfRecognizerProperties dtmf)
throws NoresourceError,
BadFetchError
startRecognition in interface InputDeviceNoresourceError
BadFetchErrorpublic void stopRecognition()
stopRecognition in interface InputDevicepublic void activate()
activate in interface ExternalResourcepublic void passivate()
passivate in interface ExternalResource
public void connect(ConnectionInformation info)
throws IOException
connect in interface RemoteConnectableIOExceptionpublic void disconnect(ConnectionInformation info)
disconnect in interface RemoteConnectablepublic String getType()
getType in interface ExternalResourcepublic void setType(String resourceType)
resourceType - type of the resourcepublic Collection<org.jvoicexml.xml.srgs.GrammarType> getSupportedGrammarTypes()
getSupportedGrammarTypes in interface SpokenInput
public URI getUriForNextSpokenInput()
throws NoresourceError,
URISyntaxException
getUriForNextSpokenInput in interface SpokenInputNoresourceError
URISyntaxExceptionpublic boolean isBusy()
isBusy in interface ExternalResourcepublic void recognizerUpdate(javax.speech.recognition.RecognizerEvent recognizerEvent)
recognizerUpdate in interface javax.speech.recognition.RecognizerListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||