2 * Copyright 2001 Sun Microsystems, Inc.
4 * See the file "license.terms" for information on usage and
5 * redistribution of this file, and for a DISCLAIMER OF ALL
8 package com.sun.speech.engine.synthesis.text;
10 import javax.speech.EngineCentral;
11 import javax.speech.EngineModeDesc;
12 import javax.speech.EngineList;
15 * Supports the JSAPI 1.0 <code>EngineCentral</code> interface for a
16 * synthesizer that sends text to standard out. Place the following
17 * line into the <code>speech.properties</code> file so that a
18 * <code>TextSynthesizer</code> can be created.
21 * TextSynthEngineCentral=com.sun.speech.engine.synthesis.text.TextEngineCentral
24 public class TextEngineCentral implements EngineCentral {
28 static private TextSynthesizerModeDesc textModeDesc =
29 new TextSynthesizerModeDesc();
32 * Returns a list containing a single reference to a
33 * <code>TextSynthesizerModeDesc</code>
34 * if the required features match those of the
35 * <code>TextSynthesizer</code>.
37 * @param require the required characteristics; <code>null</code>
40 public EngineList createEngineList(EngineModeDesc require) {
41 if (require == null || textModeDesc.match(require)) {
42 EngineList el = new EngineList();
43 el.addElement(textModeDesc);