Package com.oto.deeptonesdk.utils

Types

InvalidModelFile
Link copied to clipboard
class InvalidModelFile(message: String) : Exception
SdkNotStarted
Link copied to clipboard
class SdkNotStarted(message: String) : Exception
UnexpectedError
Link copied to clipboard
class UnexpectedError(message: String) : Exception

Functions

decodeAudioFileDescriptor
Link copied to clipboard
fun decodeAudioFileDescriptor(audioFileDescriptor: AssetFileDescriptor): FloatArray
Receives an AssetFileDescriptor of an audio file and returns FloatArray containing the raw decoded audio.
fun decodeAudioFileDescriptor(audioFileDescriptor: FileDescriptor): FloatArray
Receives a FileDescriptor for an audio file and returns FloatArray containing the raw decoded audio.
fun decodeAudioFileDescriptor(audioFilePath: String): FloatArray
Receives a String representing a file-path or http URL of an audio file and returns FloatArray containing the raw decoded audio.