mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +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 = () => {
|
const toggleSpeech = () => {
|
||||||
if (isSpeaking) {
|
if (isSpeaking) {
|
||||||
cancelSpeech();
|
cancelSpeech();
|
||||||
|
setIsSpeaking(!isSpeaking);
|
||||||
} else {
|
} else {
|
||||||
synthesizeSpeech(message?.text ?? "");
|
synthesizeSpeech(message?.text ?? "");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue