From 04904c0ca70624349f3cbc24d706ea7e4a9d91ea Mon Sep 17 00:00:00 2001 From: YanceyOfficial Date: Sun, 8 Dec 2024 17:15:00 +0800 Subject: [PATCH] fix: audio should set autoPlay if you want to play audio when it's loaded --- src/components/ChatBox/ChatMessages.tsx | 6 ++++-- src/hooks/useSpeech.ts | 16 ++-------------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/src/components/ChatBox/ChatMessages.tsx b/src/components/ChatBox/ChatMessages.tsx index abe7ad3..3276e0d 100644 --- a/src/components/ChatBox/ChatMessages.tsx +++ b/src/components/ChatBox/ChatMessages.tsx @@ -115,11 +115,13 @@ const ChatMessages: FC = () => { > - {audioUrl &&