diff --git a/frontend/src/components/TextToSpeech/PiperTTSOptions/index.jsx b/frontend/src/components/TextToSpeech/PiperTTSOptions/index.jsx index 323bf3ad51cd4d70724049c9f0932613b0bdfcca..48b87efe790628fa880a26abc20e7f5a82f52eef 100644 --- a/frontend/src/components/TextToSpeech/PiperTTSOptions/index.jsx +++ b/frontend/src/components/TextToSpeech/PiperTTSOptions/index.jsx @@ -185,6 +185,7 @@ function DemoVoiceSample({ voiceId }) { <button type="button" onClick={speakMessage} + disabled={loading} className="border-none text-zinc-300 flex items-center gap-x-1" > {speaking ? ( diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/piperTTS.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/piperTTS.jsx index d384faf1e8595f7c9c779a24e11420be947d6e0d..f8431a3bdbce1d2356b12fe6b766d5484fefd632 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/piperTTS.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/piperTTS.jsx @@ -53,6 +53,7 @@ export default function PiperTTS({ voiceId = null, message }) { <button type="button" onClick={speakMessage} + disabled={loading} data-tooltip-id="message-to-speech" data-tooltip-content={ speaking ? "Pause TTS speech of message" : "TTS Speak message"