|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.implementation.jsapi10.Jsapi10SpokenInput
public final class Jsapi10SpokenInput
Spoken input that uses the JSAPI 1.0 to address the recognition engine.
Handle all JSAPI calls to the recognizer to make JSAPI transparent to the interpreter.
| Constructor Summary | |
|---|---|
Jsapi10SpokenInput(RecognizerModeDesc defaultDescriptor)
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 Jsapi10SpokenInput(RecognizerModeDesc defaultDescriptor)
defaultDescriptor - the default recognizer mode descriptor.| Method Detail |
|---|
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<?> loadGrammar(Reader reader,
org.jvoicexml.xml.srgs.GrammarType type)
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 connectionInformation)
throws IOException
connect in interface RemoteConnectableIOExceptionpublic void disconnect(ConnectionInformation connectionInformation)
disconnect in interface RemoteConnectablepublic String getType()
getType in interface ExternalResourcepublic Collection<org.jvoicexml.xml.srgs.GrammarType> getSupportedGrammarTypes()
getSupportedGrammarTypes in interface SpokenInputpublic void setSpokenInputConnectionHandler(SpokenInputConnectionHandler connectionHandler)
connectionHandler - the connection handler.
public URI getUriForNextSpokenInput()
throws NoresourceError
getUriForNextSpokenInput in interface SpokenInputNoresourceErrorpublic boolean isBusy()
isBusy in interface ExternalResourcepublic void setStreamableSpokenInput(StreamableSpokenInput streamable)
streamable - the streamable input to set.
public void writeRecognizerStream(byte[] buffer,
int offset,
int length)
throws IOException
length bytes of data from the specified byte
array starting at offset.
writeRecognizerStream in interface StreamableSpokenInputbuffer - the buffer from which the data is read.offset - the start offset in buffer at which the data
is read.length - the maximum number of bytes to read.
IOException - Error reading from the stream..
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||