Skip to content

Commit 74d5f3a

Browse files
debounce piper button
1 parent 0813d18 commit 74d5f3a

File tree

2 files changed

+2
-0
lines changed
  • frontend/src/components
    • TextToSpeech/PiperTTSOptions
    • WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton

2 files changed

+2
-0
lines changed

frontend/src/components/TextToSpeech/PiperTTSOptions/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ function DemoVoiceSample({ voiceId }) {
185185
<button
186186
type="button"
187187
onClick={speakMessage}
188+
disabled={loading}
188189
className="border-none text-zinc-300 flex items-center gap-x-1"
189190
>
190191
{speaking ? (

frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/piperTTS.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default function PiperTTS({ voiceId = null, message }) {
5353
<button
5454
type="button"
5555
onClick={speakMessage}
56+
disabled={loading}
5657
data-tooltip-id="message-to-speech"
5758
data-tooltip-content={
5859
speaking ? "Pause TTS speech of message" : "TTS Speak message"

0 commit comments

Comments
 (0)