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 * Maintains a set of <code>PhoneDuration</code> instances indexed by
015 * phone.
016 *
017 * @see PhoneDuration
018 */
019public interface PhoneDurations {
020    /**
021     * Gets the <code>PhoneDuration</code> for the given phone.  If no
022     * duration is applicable, returns <code>null</code>.  Note that
023     * 'applicable' implementation dependent; some implementations
024     * may return a default value.
025     *
026     * @param phone the phone to get duration information for
027     *
028     * @return the duration information for the phone
029     */
030    PhoneDuration getPhoneDuration(String phone);
031}