Skip to content

Commit

Permalink
debounce piper button
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycarambat committed Aug 7, 2024
1 parent 0813d18 commit 74d5f3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 74d5f3a

Please sign in to comment.