|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.emn.reactiveinput.AbstractDevice
fr.emn.reactiveinput.devices.DSpeechSynth
| Field Summary | |
In |
say
|
In |
say_int
|
In |
say_now
|
In |
say_now_int
|
| Fields inherited from class fr.emn.reactiveinput.AbstractDevice |
currIndex, ins, outs |
| Fields inherited from interface fr.emn.reactiveinput.Device |
AUTO_PROPERTIES |
| Constructor Summary | |
DSpeechSynth()
(Options regionales = Francais) |
|
| Method Summary | |
void |
close()
Add closing code here if needed. |
protected void |
closeSpeech()
|
java.lang.String[] |
getMessages()
|
float |
getVoicePitch()
|
float |
getVoicePitchRange()
|
float |
getVoiceRate()
|
float |
getVoiceVolume()
|
boolean |
hasExternalOutput()
Specifies whether this device has external (implicit) output or not. |
protected void |
initializeVoice()
|
protected boolean |
initSpeech()
|
static void |
main(java.lang.String[] args)
Test |
Processor |
open(OpenContext context)
Subclass this method if you want to specialize data processing, or if you want to perform some initializations before running the device. |
void |
say(java.lang.String s)
|
void |
sayNow(java.lang.String s)
|
void |
setMessages(java.lang.String[] messages)
|
void |
setVoicePitch(float val)
|
void |
setVoicePitchRange(float val)
|
void |
setVoiceRate(float val)
|
void |
setVoiceVolume(float val)
|
static void |
testCentral()
|
void |
update()
Updates device's output values. |
| Methods inherited from class fr.emn.reactiveinput.AbstractDevice |
addIn, addIn, addOut, copy, doDisable, doEnable, finalize, getError, getIndex, getInfo, getIns, getName, getOuts, getProperties, hasExternalInput, init, insertAt, insertAtEnd, insertBefore, isCopiable, isEnabled, isOpenable, setEnabled, setInfo, setInfo, setLastError, setName |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public In say_int
public In say
public In say_now_int
public In say_now
| Constructor Detail |
public DSpeechSynth()
| Method Detail |
public static void main(java.lang.String[] args)
public Processor open(OpenContext context)
AbstractDeviceBy default, open() does nothing and returns the device itself as the Processor (or null if it is not openable): AbstractDevice implements both Device and Processor interfaces, so that you can add processing code directly into the device.
If you want to add specialization features, subclass this method to return a specific processor implementation depending on your device configuration.
Example :
public Processor getProcessor() {
if (super.open() == null)
return null;
// Select the right processor
if (in2.isValid()) {
return new twoParamProcessor(in1, in2, out);
else
return new oneParamProcessor(in1, out);
}
In this method, you may also perform all necessary pre-running initialization. If initialization fails, return null even if isOpenable() returns true.
In all cases, return null if isOpenable() returns false.
open in interface Deviceopen in class AbstractDeviceProcessor,
Device.open()public void close()
AbstractDevice
close in interface Deviceclose in class AbstractDevicepublic java.lang.String[] getMessages()
public void setMessages(java.lang.String[] messages)
public void update()
AbstractDeviceSubclass init() and update() methods if you want the device to process the data itself. Otherwise, subclass getProcessor() method to use extern processors.
update in interface Processorupdate in class AbstractDeviceProcessor.update()public void say(java.lang.String s)
public void sayNow(java.lang.String s)
public boolean hasExternalOutput()
AbstractDeviceReturn false if the device has no border effects. Most of input and processing devices are in this case.
Return true if the device has border effects, such as graphical feedback, or control of some external value. Examples of devices with external output are application-interfacing devices and all user feedback devices.
This method can be used by the editor for the device's graphical representation. However there is at now no clear definition of what is external output.
hasExternalOutput in interface DevicehasExternalOutput in class AbstractDeviceprotected boolean initSpeech()
protected void initializeVoice()
public void setVoiceVolume(float val)
public float getVoiceVolume()
public void setVoiceRate(float val)
public float getVoiceRate()
public void setVoicePitch(float val)
public float getVoicePitch()
public void setVoicePitchRange(float val)
public float getVoicePitchRange()
protected void closeSpeech()
public static void testCentral()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||