Package com.sun.speech.freetts
Class PhoneSetImpl
- java.lang.Object
-
- com.sun.speech.freetts.PhoneSetImpl
-
- All Implemented Interfaces:
PhoneSet
public class PhoneSetImpl extends java.lang.Object implements PhoneSet
Implementation of aPhoneSet
that reads the info from a file. The format of the file is as follows:phone feature value phone feature value phone feature value ...
Wherephone
is the phone name,feature
is the phone feature such as "vc," "vlng," "vheight," and so on, and "value" is the value of the feature. There can be multiple lines for the same phone to describe various features of that phone.
-
-
Constructor Summary
Constructors Constructor Description PhoneSetImpl(java.net.URL url)
Create a newPhoneSetImpl
by reading from the given URL.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPhoneFeature(java.lang.String phone, java.lang.String featureName)
Given a phoneme and a feature name, returns the feature.
-
-
-
Method Detail
-
getPhoneFeature
public java.lang.String getPhoneFeature(java.lang.String phone, java.lang.String featureName)
Given a phoneme and a feature name, returns the feature.- Specified by:
getPhoneFeature
in interfacePhoneSet
- Parameters:
phone
- the phoneme of interestfeatureName
- the name of the feature of interest- Returns:
- the feature with the given name
-
-