Constructor and Description |
---|
SpeechClassifiedData(DoubleData doubleData,
boolean isSpeech)
Constructs a SpeechClassifiedData object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
toString() |
public SpeechClassifiedData(DoubleData doubleData, boolean isSpeech)
doubleData
- the DoubleDataisSpeech
- indicates whether the DoubleData is speechpublic 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()
public java.lang.String toString()
toString
in class java.lang.Object