From a7a1496ca247d10e93ad621385e72abd7a555e27 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 4 Jun 2024 11:32:03 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E5=AF=BC=E5=87=BA=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B9=9F=E6=94=B9=E6=88=90=2016=20Bit=20PCM=20=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E7=9A=84=E6=B5=8B=E8=AF=95=E7=9C=8B=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index eb0ae67..c0d7106 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -31,11 +31,11 @@ const onDownload = () => { } const data = getMergedPCMData(buffers); - const blob = new Blob([data.buffer], { type: 'audio/wave' }); + const blob = new Blob([floatTo16BitPCM(data)], { type: 'audio/wave' }); const a = document.createElement('a'); a.href = URL.createObjectURL(blob); - a.download = 'merged_audio.wav'; + a.download = 'merged_audio.pcm'; a.click(); };