Decodes WAV or MP3 bytes into mono PCM16. The format is read from the bytes' own signature first and from the hint only when the bytes carry none (a bare MP3 frame stream).
The file's bytes.
Optional
The MIME type and/or file name, when known.
Mono PCM16 at the file's own sample rate.
when the format is not WAV or MP3, the file is malformed or empty, or it is longer than MAX_DECODED_AUDIO_SECONDS.
Decodes WAV or MP3 bytes into mono PCM16. The format is read from the bytes' own signature first and from the hint only when the bytes carry none (a bare MP3 frame stream).