Classes
The following classes are available globally.
-
Deeptone
Base class which provides methods to handle processing of audio data into
See moreDeeptoneOutput
.Declaration
Swift
public class Deeptone
-
DeeptoneStream
DeeptoneStream
predicts audio data every second, the user might provide audio data asAVAudioPCMBuffer
to by calling thewrite
method of the instance, every time there’s data availableDeeptoneOnData
callback will be called providing the user with predictions over time.When the user is done writing data
close
method must be called to terminate the stream, this method will triggerDeeptoneOnSuccess
callback with all previous predictions.Since predictions are generated every second
See moreDeeptoneStream
has a queue mechanism that stores incoming data into memory and when all this data is consumed byDeeptoneStream
it automatically callsDeeptoneOnSuccess
.Declaration
Swift
public class DeeptoneStream