UtteranceProcessor
public class DiphoneUnitSelector extends java.lang.Object implements UtteranceProcessor
Constructor | Description |
---|---|
DiphoneUnitSelector(java.net.URL url) |
Constructs a DiphoneUnitSelector.
|
Modifier and Type | Method | Description |
---|---|---|
SampleInfo |
getSampleInfo() |
Get the sample info for the underlying database.
|
void |
processUtterance(Utterance utterance) |
Generates the Unit Relation from the Segment Relation.
|
java.lang.String |
toString() |
Returns a string representation of this object.
|
public DiphoneUnitSelector(java.net.URL url) throws java.io.IOException
url
- the URL for the unit database. If the URL path ends
with a '.bin' it is assumed that the DB is a binary database,
otherwise, its assumed that its a text database1java.io.IOException
- if an error occurs while loading the
databasepublic SampleInfo getSampleInfo()
public void processUtterance(Utterance utterance) throws ProcessException
processUtterance
in interface UtteranceProcessor
utterance
- the utterance to generate the Unit RelationProcessException
- if an IOException is thrown during the
processing of the utterancepublic java.lang.String toString()
toString
in class java.lang.Object