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 * Maintains a set of <code>PhoneDuration</code> instances indexed by
19 public interface PhoneDurations {
21 * Gets the <code>PhoneDuration</code> for the given phone. If no
22 * duration is applicable, returns <code>null</code>. Note that
23 * 'applicable' implementation dependent; some implementations
24 * may return a default value.
26 * @param phone the phone to get duration information for
28 * @return the duration information for the phone
30 public PhoneDuration getPhoneDuration(String phone);