jaugment2.speech
Class JavaSpeechServiceProxy
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--jaugment2.speech.JavaSpeechServiceProxy
- public class JavaSpeechServiceProxy
- extends java.rmi.server.UnicastRemoteObject
- implements speechRecognizing, net.jini.admin.Administrable, speechSynthesizing, java.io.Serializable, java.rmi.Remote
RMI+JINI-proxy for JavaSpeechService
- See Also:
JavaSpeechService, Serialized Form
| Fields inherited from class java.rmi.server.UnicastRemoteObject |
csf,
port,
portFactoryParamTypes,
portParamTypes,
serialVersionUID,
ssf |
| Fields inherited from class java.rmi.server.RemoteServer |
log,
logname,
serialVersionUID |
| Fields inherited from class java.rmi.server.RemoteObject |
ref,
serialVersionUID |
|
Method Summary |
net.jini.core.lease.Lease |
addDictationListener(net.jini.core.event.RemoteEventListener listener,
java.rmi.MarshalledObject handback,
int subscribedFor)
|
speechRecognizing.GrammarResult |
addGrammar(java.lang.String grammar,
net.jini.core.event.RemoteEventListener listener,
java.rmi.MarshalledObject handback,
int subscribedFor)
add a grammar to be recognized and a listener to be informed whenever
it is spoken and activate the grammar |
speechRecognizing.GrammarResult |
addGrammar(java.lang.String grammar,
net.jini.core.event.RemoteEventListener listener,
java.rmi.MarshalledObject handback,
int subscribedFor,
boolean activate)
add a grammar to be recognized and a listener to be informed whenever
it is spoken and activate the grammar if activate is true |
java.lang.Object |
getAdmin()
Returns an object that implements our administration-interfaces. |
void |
speak(java.lang.String s)
speaks the given text. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
,
clone,
exportObject,
exportObject,
exportObject,
exportObject,
readObject,
reexport,
unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost,
getLog,
setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals,
getRef,
hashCode,
toString,
toStub,
writeObject |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
service
private JavaSpeechService service
JavaSpeechServiceProxy
JavaSpeechServiceProxy(JavaSpeechService service)
throws java.rmi.RemoteException
getAdmin
public java.lang.Object getAdmin()
throws java.rmi.RemoteException
- Returns an object that implements our administration-interfaces.
- Specified by:
- getAdmin in interface net.jini.admin.Administrable
- Throws:
- java.rmi.RemoteException -
- See Also:
JoinAdmin
speak
public void speak(java.lang.String s)
throws java.rmi.RemoteException,
java.lang.IllegalStateException
- speaks the given text. See the Java-Speech-API-doc for
special tokens.
- Specified by:
- speak in interface speechSynthesizing
addGrammar
public speechRecognizing.GrammarResult addGrammar(java.lang.String grammar,
net.jini.core.event.RemoteEventListener listener,
java.rmi.MarshalledObject handback,
int subscribedFor)
throws java.rmi.RemoteException,
net.jini.core.lease.LeaseDeniedException,
java.lang.IllegalStateException
- add a grammar to be recognized and a listener to be informed whenever
it is spoken and activate the grammar
- Specified by:
- addGrammar in interface speechRecognizing
addGrammar
public speechRecognizing.GrammarResult addGrammar(java.lang.String grammar,
net.jini.core.event.RemoteEventListener listener,
java.rmi.MarshalledObject handback,
int subscribedFor,
boolean activate)
throws java.rmi.RemoteException,
net.jini.core.lease.LeaseDeniedException,
java.lang.IllegalStateException
- add a grammar to be recognized and a listener to be informed whenever
it is spoken and activate the grammar if activate is true
- Specified by:
- addGrammar in interface speechRecognizing
addDictationListener
public net.jini.core.lease.Lease addDictationListener(net.jini.core.event.RemoteEventListener listener,
java.rmi.MarshalledObject handback,
int subscribedFor)
throws java.rmi.RemoteException,
net.jini.core.lease.LeaseDeniedException,
java.lang.IllegalStateException
- Specified by:
- addDictationListener in interface speechRecognizing