From 17b04fc6fbbb08485368e099df185e9063d0821e Mon Sep 17 00:00:00 2001 From: canisminor1990 Date: Sun, 19 Nov 2023 16:06:32 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20Remove=20conso?= =?UTF-8?q?le=20log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/react/hooks/useStreamAudioPlayer.ts | 1 - src/react/useEdgeSpeech/demos/index.tsx | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/react/hooks/useStreamAudioPlayer.ts b/src/react/hooks/useStreamAudioPlayer.ts index ce11eba..d8ae764 100644 --- a/src/react/hooks/useStreamAudioPlayer.ts +++ b/src/react/hooks/useStreamAudioPlayer.ts @@ -70,7 +70,6 @@ export const useStreamAudioPlayer = (): StreamAudioPlayerReturn => { const loadArrayBuffer = useCallback( async (arrayBuffer: ArrayBuffer) => { - console.log(arrayBuffer); if (!arrayBuffer) return; if (maxLength === 0) { const newBlob = new Blob([arrayBuffer], { type: 'audio/mp3' }); diff --git a/src/react/useEdgeSpeech/demos/index.tsx b/src/react/useEdgeSpeech/demos/index.tsx index 168a1d8..cf8ef57 100644 --- a/src/react/useEdgeSpeech/demos/index.tsx +++ b/src/react/useEdgeSpeech/demos/index.tsx @@ -32,10 +32,6 @@ export default () => { const { setText, isGlobalLoading, start, stop, audio } = useEdgeSpeech(defaultText, { api, - onError: (err, ...rest) => { - console.log(err); - console.log(...rest); - }, options, }); return (