org.alchar.jdtk.jsapi
Class DTKSynthesizerModeDesc

java.lang.Object
  extended by javax.speech.EngineModeDesc
      extended by javax.speech.synthesis.SynthesizerModeDesc
          extended by 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.


Constructor Summary
DTKSynthesizerModeDesc(String engineName, String modeName, Locale locale, DTKVoice[] voices)
          Create a new DTKSynthesizerModeDesc object based on the given parameters.
 
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.
 
Methods inherited from class javax.speech.synthesis.SynthesizerModeDesc
addVoice, equals, getVoices, match, setVoices
 
Methods inherited from class javax.speech.EngineModeDesc
getEngineName, getLocale, getModeName, getRunning, setEngineName, setLocale, setModeName, setRunning
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 engine
modeName - Name of the mode
locale - Locale for the mode
voices - Array of voices
Method Detail

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.