|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AcousticModel
Represents the generic interface to the Acoustic Model for sphinx4
| Field Summary | |
|---|---|
static java.lang.String |
PROP_LOCATION
The directory where the acoustic model data can be found. |
static java.lang.String |
PROP_LOCATION_DEFAULT
The default value of PROP_LOCATION. |
| Method Summary | |
|---|---|
void |
allocate()
Gets this acoustic model ready to use, allocating all necessary resources. |
void |
deallocate()
Deallocates previously allcoated resources |
java.util.Iterator<Unit> |
getContextIndependentUnitIterator()
Returns an iterator that can be used to iterate through all the CI units in the acoustic model |
java.util.Iterator |
getHMMIterator()
Returns an iterator that can be used to iterate through all the HMMs of the acoustic model |
int |
getLeftContextSize()
Returns the size of the left context for context dependent units |
java.lang.String |
getName()
Returns the name of this AcousticModel, or null if it has no name. |
java.util.Properties |
getProperties()
Returns the properties of this acoustic model. |
int |
getRightContextSize()
Returns the size of the right context for context dependent units |
HMM |
lookupNearestHMM(Unit unit,
HMMPosition position,
boolean exactMatch)
Given a unit, returns the HMM that best matches the given unit. |
| Methods inherited from interface edu.cmu.sphinx.util.props.Configurable |
|---|
newProperties |
| Field Detail |
|---|
static final java.lang.String PROP_LOCATION
static final java.lang.String PROP_LOCATION_DEFAULT
| Method Detail |
|---|
void allocate()
throws java.io.IOException
java.io.IOException - if the model could not be loadedvoid deallocate()
java.lang.String getName()
HMM lookupNearestHMM(Unit unit,
HMMPosition position,
boolean exactMatch)
unit - the unit of interestposition - the position of the unit of interestexactMatch - if true, only an exact match is acceptable.
java.util.Iterator getHMMIterator()
HMM.java.util.Iterator<Unit> getContextIndependentUnitIterator()
Unitint getLeftContextSize()
int getRightContextSize()
java.util.Properties getProperties()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||