Deeptone
public class Deeptone
Deeptone
Base class which provides methods to handle processing of audio data into DeeptoneOutput
.
-
init
Initialize Deeptone class with license key and model path.
Declaration
Swift
public init(key: String, modelPath: String)
-
start
Start configuration of Deeptone, this method is asynchronous and should be executed successfully for Deeptone functionality to work correctly.
Declaration
Swift
public func start(completion: @escaping (DeeptoneStartResult) -> Void)
-
loadAudioFile
Receives a file path for an audio file and returns
DeeptoneOutput
.Declaration
Swift
public func loadAudioFile(filePath: String) throws -> DeeptoneOutput
-
stream
Return an instance of
DeeptoneStream
.Declaration
Swift
public func stream( onData: @escaping DeeptoneOnData, onSuccess: @escaping DeeptoneOnSuccess, onError: @escaping DeeptoneOnError ) throws -> DeeptoneStream