mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-05-02 17:07:13 +00:00
debounce piper button
This commit is contained in:
parent
0813d18739
commit
74d5f3adc5
2 changed files with 2 additions and 0 deletions
frontend/src/components
TextToSpeech/PiperTTSOptions
WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton
|
@ -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 ? (
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue