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.
7 * See the file "license.terms" for information on usage and
8 * redistribution of this file, and for a DISCLAIMER OF ALL
11 package com.sun.speech.freetts;
14 * Performs an operation on an Utterance.
15 * Examples of classes that might implement
16 * this interface include a Tokenizer, Normalizer, PartOfSpeechTagger,
19 public interface UtteranceProcessor {
22 * Performs an operation on the given Utterance.
24 * @param u the utterance on which to perform operations
26 * @throws ProcessException if an exception occurred during the operation
28 public void processUtterance(Utterance u) throws ProcessException;