Overview | Package | Class | Tree | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.speech.EngineModeDesc | +--javax.speech.synthesis.SynthesizerModeDesc
SynthesizerModeDesc
extends the EngineModeDesc
with properties that are specific to speech synthesizers.
A SynthesizerModeDesc
inherits engine name,
mode name, locale and running properties from EngineModeDesc
.
SynthesizerModeDesc
adds two properties:
Like EngineModeDesc
, there are two types of
SynthesizerModeDesc
: those created by an application
which are used in engine selection, and those created by an
engine which descibe a particular mode of operation of the engine.
Descriptor provided engines are obtained through the
availableSynthesizers
method of the Central
class and must have all their features
defined. A descriptor created by an application may make
any or all of the features null
which means "don't care"
(null features are ignored in engine selection).
Applications can modify application-created descriptors in
any way. Applications should never modify a SynthesizerModeDesc
provided by an engine (i.e. returned by the availableSynthesizers
method.
Engine creation is described in the documentation for the
Central
class.
Constructor Summary | |
SynthesizerModeDesc()
Construct a descriptor with all features set to null . |
|
SynthesizerModeDesc(Locale locale)
Create a SynthesizerModeDesc with a given Locale
and other features set to null . |
|
SynthesizerModeDesc(String engineName,
String modeName,
Locale locale,
Boolean running,
Voice[] voices)
Create a fully-specified descriptor. |
Method Summary | |
void | addVoice(Voice v)
Append a voice to the list of voices. |
boolean | equals(Object anObject)
Returns true if and only if the parameter is not null
and is a SynthesizerModeDesc with equal values of
engine name, mode name, locale, running, and all voices. |
Voice[] | getVoices()
Returns the list of voices available in this synthesizer mode. |
boolean | match(EngineModeDesc require)
Determine whether a SynthesizerModeDesc has all the features
specified by the require object. |
void | setVoices(Voice[] v)
Set the list of synthesizer voices. |
Methods inherited from class javax.speech.EngineModeDesc | |
equals, getEngineName, getLocale, getModeName, getRunning, match, setEngineName, setLocale, setModeName, setRunning |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Constructor Detail |
public SynthesizerModeDesc()
null
.public SynthesizerModeDesc(Locale locale)
SynthesizerModeDesc
with a given Locale
and other features set to null
.public SynthesizerModeDesc(String engineName, String modeName, Locale locale, Boolean running, Voice[] voices)
null
.Method Detail |
public Voice[] getVoices()
public void setVoices(Voice[] v)
public void addVoice(Voice v)
public boolean match(EngineModeDesc require)
SynthesizerModeDesc
has all the features
specified by the require
object. Features in
require
which are either null
or
zero-length strings ("") are not tested (including those contained by
Locale
). All string comparisons are exact (case-sensitive).
The parameters are used as follows:
EngineModeDesc
class
are compared. If any test fails, the method returns false.
SynthesizerModeDesc
(or sub-class) then the required voice list is tested as follows.
Voice.match()
for details.)
Note: if is possible to compare an EngineModeDesc
against a SynthesizerModeDesc
and vice versa.
public boolean equals(Object anObject)
null
and is a SynthesizerModeDesc
with equal values of
engine name, mode name, locale, running, and all voices.Overview | Package | Class | Tree | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaTM Speech API
Copyright 1997-1998 Sun Microsystems, Inc. All rights reserved
Send comments to javaspeech-comments@sun.com