|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.sphinx.frontend.endpoint.SpeechClassifiedData
public class SpeechClassifiedData
A container for DoubleData class that indicates whether the contained DoubleData is speech or not.
| Constructor Summary | |
|---|---|
SpeechClassifiedData(DoubleData doubleData,
boolean isSpeech)
Constructs a SpeechClassifiedData object. |
|
| Method Summary | |
|---|---|
long |
getCollectTime()
Returns the time in milliseconds at which the audio data is collected. |
DoubleData |
getDoubleData()
Returns the DoubleData contained by this SpeechClassifiedData. |
long |
getFirstSampleNumber()
Returns the position of the first sample in the original data. |
int |
getSampleRate()
Returns the sample rate of the data. |
double[] |
getValues()
Returns the data values. |
boolean |
isSpeech()
Returns whether this is classified as speech. |
void |
setSpeech(boolean isSpeech)
Sets whether this SpeechClassifiedData is speech or not. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpeechClassifiedData(DoubleData doubleData,
boolean isSpeech)
doubleData - the DoubleDataisSpeech - indicates whether the DoubleData is speech| Method Detail |
|---|
public void setSpeech(boolean isSpeech)
isSpeech - true if this is speech, false otherwisepublic boolean isSpeech()
public double[] getValues()
public int getSampleRate()
public long getCollectTime()
public long getFirstSampleNumber()
public DoubleData getDoubleData()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||