Compresses an audio file to the specified format.
Routes through FFmpeg Wasm in the browser (or native FFmpeg in Node).
const { blob, ratio } = await compressAudio(file, { format: 'opus', bitrate: '96k' }); Copy
const { blob, ratio } = await compressAudio(file, { format: 'opus', bitrate: '96k' });
Compresses an audio file to the specified format.
Routes through FFmpeg Wasm in the browser (or native FFmpeg in Node).