mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-08 07:32:34 +01:00
Added stop to lip sync when user stops TTS early
This commit is contained in:
parent
e1ea448236
commit
36c6f57d96
@ -327,6 +327,7 @@ function onAudioControlClicked() {
|
|||||||
// Not pausing, doing a full stop to anything TTS is doing. Better UX as pause is not as useful
|
// Not pausing, doing a full stop to anything TTS is doing. Better UX as pause is not as useful
|
||||||
if (!audioElement.paused || isTtsProcessing()) {
|
if (!audioElement.paused || isTtsProcessing()) {
|
||||||
resetTtsPlayback()
|
resetTtsPlayback()
|
||||||
|
talkingAnimation(false);
|
||||||
} else {
|
} else {
|
||||||
// Default play behavior if not processing or playing is to play the last message.
|
// Default play behavior if not processing or playing is to play the last message.
|
||||||
ttsJobQueue.push(context.chat[context.chat.length - 1])
|
ttsJobQueue.push(context.chat[context.chat.length - 1])
|
||||||
|
Loading…
Reference in New Issue
Block a user