decodeAudioFileDescriptor

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.

Parameters

audioFilePath

a String representing a file-path or http URL of an audio file When audioFilePath refers to a local file, the file may actually be opened by a process other than the calling application. This implies that the pathname should be an absolute path (as any other process runs with unspecified current working directory), and that the pathname should reference a world-readable file. When path refers to a network file the Manifest.permission.INTERNET permission is required. This value cannot be null.

fun decodeAudioFileDescriptor(audioFileDescriptor: AssetFileDescriptor): FloatArray

Receives an AssetFileDescriptor of an audio file and returns FloatArray containing the raw decoded audio.

Parameters

audioAssetFileDescriptor

AssetFileDescriptor of an audio file

fun decodeAudioFileDescriptor(audioFileDescriptor: FileDescriptor): FloatArray

Receives a FileDescriptor for an audio file and returns FloatArray containing the raw decoded audio.

Parameters

audioFileDescriptor

file descriptor for an audio file