From ce8da22b3872141a1382bb9c3443080c9c3f2c0b Mon Sep 17 00:00:00 2001 From: canisminor1990 Date: Sun, 19 Nov 2023 00:13:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Fix=20onFinish?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/react/useTTS/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/react/useTTS/index.ts b/src/react/useTTS/index.ts index e2c4ed2..9302a96 100644 --- a/src/react/useTTS/index.ts +++ b/src/react/useTTS/index.ts @@ -60,7 +60,7 @@ export const useTTS = ( if (index < textArray.length - 1) { setIndex(index + 1); } else { - onFinish?.(data, ...rest); + onFinish?.(restAudio.arrayBuffers, ...rest); setShouldFetch(false); setIsGlobalLoading(false); }