[Package Index] [Index] [Users' Guide] [SVAPI Home Page]

Interface COM.novell.SVAPI.Utterance

public interface Utterance extends Remote

The Utterance interface must be implemented by every verification engine. The Utterance interface provides an abstraction to an audio sample.



Method Index

dispose()
Releases all resources associated with the utterance.
endTime()
Returns the utterance's end time, in milliseconds.
play()
Plays the utterance to the audio device.
startTime()
Returns the utterance's start time, in milliseconds.
toByteArray()
Gets the utterance's audio data.


Methods



dispose

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:


toByteArray

public abstract byte[] toByteArray()
Gets the utterance's audio data. The format is defined by the EngineProperties when the engine is created.
Exceptions:


startTime

public abstract long startTime()
Returns the utterance's start time, in milliseconds. This value should be correlated with System.currentTimeMillis().
Exceptions:


endTime

public abstract long endTime()
Returns the utterance's end time, in milliseconds. This value should be correlated with System.currentTimeMillis().
Exceptions:


play

public abstract void play()
Plays the utterance to the audio device.
Exceptions:



[Package Index] [Index] [Users' Guide] [SVAPI Home Page]

rwille@novell.com