encodeToByteArray

suspend fun encodeToByteArray(data: AudioData, filename: String = "out.wav", format: AudioFormat = this, props: AudioEncodingProps = AudioEncodingProps.DEFAULT): ByteArray