Update HoverButtons.tsx

This commit is contained in:
bsu3338 2023-09-03 22:03:34 -05:00 committed by GitHub
parent 7ae0e7e97c
commit c794f07678
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,6 @@ export default function HoverButtons({
if (isSpeaking) { if (isSpeaking) {
cancelSpeech(); cancelSpeech();
} else { } else {
// const utterance = new SpeechSynthesisUtterance(message?.text ?? ""); // Assuming 'text' is the field in message that contains the text to speak
synthesizeSpeech(message?.text ?? ""); synthesizeSpeech(message?.text ?? "");
} }
setIsSpeaking(!isSpeaking); setIsSpeaking(!isSpeaking);