mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-21 21:50:49 +02:00
Update HoverButtons.tsx
This commit is contained in:
parent
c5ce576fb8
commit
4c6d067cb9
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ export default function HoverButtons({
|
|||
const toggleSpeech = () => {
|
||||
if (isSpeaking) {
|
||||
cancelSpeech();
|
||||
setIsSpeaking(!isSpeaking);
|
||||
} else {
|
||||
synthesizeSpeech(message?.text ?? "");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue