append

abstract fun append(audioData: ByteArray, meaningfulLengthInBytes: Int, timestamp: Long)

Add audio to the generator

Audio passed to the generator should be contiguous, passing non contiguous data will affect the quality of the Signature produced.

Parameters

audioData

An array containing a chunk of audio to be used for recognition.

meaningfulLengthInBytes

How much of audioData will be effectively used. This comes handy when recording using the Android's AudioRecord that might not completely fulfill the requested buffer with meaningful data.

timestamp

The timestamp expressed in milliseconds where in the stream the audio occurs.