upstream version 1.2.2
[debian/freetts] / com / sun / speech / freetts / UtteranceProcessor.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  * Performs an operation on an Utterance.
15  * Examples of classes that might implement
16  * this interface include a Tokenizer, Normalizer, PartOfSpeechTagger, 
17  * etc.
18  */
19 public interface UtteranceProcessor {
20
21     /**
22      * Performs an operation on the given Utterance.
23      *
24      * @param u the utterance on which to perform operations
25      *
26      * @throws ProcessException if an exception occurred during the operation
27      */
28     public void processUtterance(Utterance u) throws ProcessException;
29 }
30