Update HoverButtons.tsx

This commit is contained in:
bsu3338 2023-09-03 22:24:29 -05:00 committed by GitHub
parent c5ce576fb8
commit 4c6d067cb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,6 +53,7 @@ export default function HoverButtons({
const toggleSpeech = () => {
if (isSpeaking) {
cancelSpeech();
setIsSpeaking(!isSpeaking);
} else {
synthesizeSpeech(message?.text ?? "");
}