decodeAudioData

suspend fun decodeAudioData(    audioData: ArrayBuffer,     successCallback: DecodeSuccessCallback? = definedExternally,     errorCallback: DecodeErrorCallback? = definedExternally): AudioBuffer(source)

The decodeAudioData() method of the BaseAudioContext Interface is used to asynchronously decode audio file data contained in an rate, then passed to a callback or promise.

MDN Reference