org.alchar.jdtk.jsapi
Class DTKSynthesizerModeDesc
java.lang.Object
javax.speech.EngineModeDesc
javax.speech.synthesis.SynthesizerModeDesc
org.alchar.jdtk.jsapi.DTKSynthesizerModeDesc
- All Implemented Interfaces:
- EngineCreate
public class DTKSynthesizerModeDesc
- extends SynthesizerModeDesc
- implements EngineCreate
This class provides an implementation of the synthesizer-specific mode
description class.
|
Method Summary |
Engine |
createEngine()
Return an engine (actually a DTKSynthesizer) that matches the properties
of this synthesizer mode. |
String |
toString()
Return a string representation of this object. |
DTKSynthesizerModeDesc
public DTKSynthesizerModeDesc(String engineName,
String modeName,
Locale locale,
DTKVoice[] voices)
- Create a new DTKSynthesizerModeDesc object based on the given
parameters.
- Parameters:
engineName - Name of the enginemodeName - Name of the modelocale - Locale for the modevoices - Array of voices
createEngine
public Engine createEngine()
throws IllegalArgumentException,
EngineException,
SecurityException
- Return an engine (actually a DTKSynthesizer) that matches the properties
of this synthesizer mode.
- Specified by:
createEngine in interface EngineCreate
- Returns:
- An engine that mathes the mode
- Throws:
IllegalArgumentException - No match found
EngineException - Cannot create engine
SecurityException - No permission
toString
public String toString()
- Return a string representation of this object.
- Overrides:
toString in class Object
- Returns:
- String representation
Copyright © 2007-2009 Kris Van Hees. All Rights Reserved.