This function is used to compress/encode a BasicSample. The function is recommended to be asynchronous.
The PCM sample data.
The sample rate in Hertz.
Uint8Array containing the compressed audio data (a complete container).
Uint8Array
This function is used to compress/encode a BasicSample. The function is recommended to be asynchronous.