jaugment2.speech
Class CmdlnSpeakerService

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--jaugment2.jini.simpleService.simpleService
                          |
                          +--jaugment2.speech.CmdlnSpeakerService

public class CmdlnSpeakerService
extends simpleService
implements java.rmi.Remote, net.jini.discovery.DiscoveryListener, speechSynthesizing

Service using a command-line-program (e.g. say from the speech.tools) to do voice-synth.

See Also:
Serialized Form

Inner classes inherited from class jaugment2.jini.simpleService.simpleService
simpleService.myServiceIDListener
 
Field Summary
private  CmdlnSpeakerServiceProxy myproxy
           
 
Fields inherited from class jaugment2.jini.simpleService.simpleService
bindings, fallback_attrSets, jmngr, ldm, lrm, persistentState, proxy, sid, simpleservicedebugMessages
 
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
 
Constructor Summary
CmdlnSpeakerService()
           
CmdlnSpeakerService(net.jini.core.discovery.LookupLocator locallocator)
           
 
Method Summary
 void destroy()
          stop this service, destroy any persistent storage and exit
 void discarded(net.jini.discovery.DiscoveryEvent e)
          Called when one or more lookup service registrars has been discarded.
 void discovered(net.jini.discovery.DiscoveryEvent e)
          Called when one or more lookup service registrars has been discovered.
private  void loadMe()
           
 void restart()
          restart this service once it has been stopped
 void speak(java.lang.String s)
          speaks the given text.
 void stop(boolean exit)
          stop this service.
 
Methods inherited from class jaugment2.jini.simpleService.simpleService
, deinit, deinitBindings, finalize, getProxy, getServiceItem, getStorageLocation, init, initBindings, initBindings, load, save, setStorageLocation
 
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
getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

myproxy

private CmdlnSpeakerServiceProxy myproxy
Constructor Detail

CmdlnSpeakerService

public CmdlnSpeakerService()
                    throws java.rmi.RemoteException

CmdlnSpeakerService

public CmdlnSpeakerService(net.jini.core.discovery.LookupLocator locallocator)
                    throws java.rmi.RemoteException
Method Detail

loadMe

private void loadMe()

discovered

public void discovered(net.jini.discovery.DiscoveryEvent e)
Called when one or more lookup service registrars has been discovered. The method should return quickly; e.g., it should not make remote calls.
Specified by:
discovered in interface net.jini.discovery.DiscoveryListener
Parameters:
e - the event that describes the discovered registrars

discarded

public void discarded(net.jini.discovery.DiscoveryEvent e)
Called when one or more lookup service registrars has been discarded. The method should return quickly; e.g., it should not make remote calls.
Specified by:
discarded in interface net.jini.discovery.DiscoveryListener
Parameters:
e - the event that describes the discarded registrars

restart

public void restart()
             throws java.lang.Exception
restart this service once it has been stopped
Overrides:
restart in class simpleService
See Also:
stop

stop

public void stop(boolean exit)
          throws java.lang.Exception
stop this service. If exit is false all references to this service are still valid but it has deregistered everywhere. (this includes the RMI-activation-daemon)
Overrides:
stop in class simpleService
Parameters:
exit - stop running
See Also:
restart, destroy

destroy

public void destroy()
             throws java.rmi.RemoteException
stop this service, destroy any persistent storage and exit
Overrides:
destroy in class simpleService

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