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/** 015 * Maintains a list of phones with various features for those phones. 016 */ 017public interface PhoneSet { 018 019 /** 020 * Vowel or consonant: + = vowel, - = consonant. 021 */ 022 String VC = "vc"; 023 024 /** 025 * Vowel length: s = short, l = long, d = dipthong, a = schwa. 026 */ 027 String VLNG = "vlng"; 028 029 /** 030 * Vowel height: 1 = high, 2 = mid, 3 = low. 031 */ 032 String VHEIGHT = "vheight"; 033 034 /** 035 * Vowel frontness: 1 = front, 2 = mid, 3 = back. 036 */ 037 String VFRONT = "vfront"; 038 039 /** 040 * Lip rounding: + = on, - = off. 041 */ 042 String VRND = "vrnd"; 043 044 /** 045 * Consonant type: s = stop, f = fricative, a = affricative, 046 * n = nasal, l = liquid. 047 */ 048 String CTYPE = "ctype"; 049 050 /** 051 * Consonant cplace: l = labial, a = alveolar, p = palatal, 052 * b = labio_dental, d = dental, v = velar 053 */ 054 String CPLACE = "cplace"; 055 056 /** 057 * Consonant voicing: + = on, - = off 058 */ 059 String CVOX = "cvox"; 060 061 /** 062 * Given a phoneme and a feature name, return the feature. 063 * 064 * @param phone the phoneme of interest 065 * @param featureName the name of the feature of interest 066 * 067 * @return the feature with the given name 068 */ 069 String getPhoneFeature(String phone, String featureName); 070}