read
Reads an audio file from an in-memory byte array.
The file format is detected from fileName's extension (WAV, AIFF, AU/SND). Useful when the bytes come from a non-Path source (uploaded blob, FileKit PlatformFile.readBytes(), network response, etc.).
Throws
if the bytes are not a valid audio file.
if the audio encoding is not supported.