Added stop to lip sync when user stops TTS early

This commit is contained in:
joe 2023-08-15 19:25:42 +09:00
parent e1ea448236
commit 36c6f57d96
1 changed files with 1 additions and 0 deletions

View File

@ -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
if (!audioElement.paused || isTtsProcessing()) {
resetTtsPlayback()
talkingAnimation(false);
} else {
// Default play behavior if not processing or playing is to play the last message.
ttsJobQueue.push(context.chat[context.chat.length - 1])