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 * Performs an operation on an Utterance. 015 * Examples of classes that might implement 016 * this interface include a Tokenizer, Normalizer, PartOfSpeechTagger, 017 * etc. 018 */ 019public interface UtteranceProcessor { 020 021 /** 022 * Performs an operation on the given Utterance. 023 * 024 * @param u the utterance on which to perform operations 025 * 026 * @throws ProcessException if an exception occurred during the operation 027 */ 028 void processUtterance(Utterance u) throws ProcessException; 029} 030