001/**
002 * Portions Copyright 2001 Sun Microsystems, Inc.
003 * Portions Copyright 1999-2001 Language Technologies Institute, 
004 * Carnegie Mellon University.
005 * All Rights Reserved.  Use is subject to license terms.
006 * 
007 * See the file "license.terms" for information on usage and
008 * redistribution of this file, and for a DISCLAIMER OF ALL 
009 * WARRANTIES.
010 */
011package com.sun.speech.freetts;
012
013/**
014 * Specifies the input mode of FreeTTS.
015 */
016public class InputMode {
017    
018    private final String name;
019    
020    private InputMode(String name) {
021        this.name = name;
022    }
023    
024    public String toString() {
025        return name;
026    }
027
028    /**
029     * Indicates that there is no input mode
030     */
031    public static final InputMode NONE = new InputMode("none");
032    
033    /**
034     * Indicates that the input is from a file.
035     */
036    public static final InputMode FILE = new InputMode("file");
037    
038    /**
039     * Indicates that the input is from text.
040     */
041    public static final InputMode TEXT = new InputMode("text");
042    
043    /**
044     * Indicates that the input is from a URL.
045     */
046    public static final InputMode URL = new InputMode("url");
047
048    /**
049     * Indicates that the input is a set of lines in a file..
050     */
051    public static final InputMode LINES = new InputMode("lines");
052    
053    
054    /**
055     * Indicates that the input is from the keyboard.
056     */
057    public static final InputMode INTERACTIVE = new InputMode("interactive");
058}