Deeptone Stream
class DeeptoneStream
Content copied to clipboard
DeeptoneStream predicts audio data every second, the user might provide audio data as FloatArray by calling the DeeptoneStream.write method of the instance, every time there's data available onData callback will be called providing the user with predictions over time.
When the user is done writing data DeeptoneStream.close method must be called to terminate the stream, this method will trigger onSuccess callback with all previous predictions.
Since predictions are generated every second DeeptoneStream has a queue mechanism that stores incoming data into memory and when all this data is consumed by DeeptoneStream it automatically calls onSuccess.
Functions
getMaxIndex
Link copied to clipboard
write
Link copied to clipboard
Properties
onData
Link copied to clipboard
onSuccess
Link copied to clipboard
streamBuffer
Link copied to clipboard
timerHandler
Link copied to clipboard