The Utterance interface must be implemented by every verification engine. The Utterance interface provides an abstraction to an audio sample.
public abstract void dispose()
Releases all resources associated with the utterance. Subsequent use of this object will cause an UtteranceReleasedException to be thrown. This call should be ignored if the utterance has already been disposed.
Exceptions:
public abstract byte[] toByteArray()
Gets the utterance's audio data. The format is defined by the EngineProperties when the engine is created.
Exceptions:
public abstract long startTime()
Returns the utterance's start time, in milliseconds. This value should be correlated with System.currentTimeMillis().
Exceptions:
public abstract long endTime()
Returns the utterance's end time, in milliseconds. This value should be correlated with System.currentTimeMillis().
Exceptions:
public abstract void play()
Plays the utterance to the audio device.
Exceptions: