]> git.gag.com Git - debian/freetts/blob - com/sun/speech/freetts/InputMode.java
upstream version 1.2.2
[debian/freetts] / com / sun / speech / freetts / InputMode.java
1 /**
2  * Portions Copyright 2001 Sun Microsystems, Inc.
3  * Portions Copyright 1999-2001 Language Technologies Institute, 
4  * Carnegie Mellon University.
5  * All Rights Reserved.  Use is subject to license terms.
6  * 
7  * See the file "license.terms" for information on usage and
8  * redistribution of this file, and for a DISCLAIMER OF ALL 
9  * WARRANTIES.
10  */
11 package com.sun.speech.freetts;
12
13 /**
14  * Specifies the input mode of FreeTTS.
15  */
16 public class InputMode {
17     
18     private final String name;
19     
20     private InputMode(String name) {
21         this.name = name;
22     }
23     
24     public String toString() {
25         return name;
26     }
27
28     /**
29      * Indicates that there is no input mode
30      */
31     public static final InputMode NONE = new InputMode("none");
32     
33     /**
34      * Indicates that the input is from a file.
35      */
36     public static final InputMode FILE = new InputMode("file");
37     
38     /**
39      * Indicates that the input is from text.
40      */
41     public static final InputMode TEXT = new InputMode("text");
42     
43     /**
44      * Indicates that the input is from a URL.
45      */
46     public static final InputMode URL = new InputMode("url");
47
48     /**
49      * Indicates that the input is a set of lines in a file..
50      */
51     public static final InputMode LINES = new InputMode("lines");
52     
53     
54     /**
55      * Indicates that the input is from the keyboard.
56      */
57     public static final InputMode INTERACTIVE = new InputMode("interactive");
58 }