mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-23 07:51:18 +01:00
Fix TTS not playing if the last message was generated quietly
This commit is contained in:
parent
ddeb42ba55
commit
3f5728d67a
@ -3148,7 +3148,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
|
|||||||
console.debug('calling runGenerate');
|
console.debug('calling runGenerate');
|
||||||
|
|
||||||
if (!dryRun) {
|
if (!dryRun) {
|
||||||
streamingProcessor = isStreamingEnabled() ? new StreamingProcessor(type, force_name2, generation_started) : false;
|
streamingProcessor = isStreamingEnabled() && type !== 'quiet' ? new StreamingProcessor(type, force_name2, generation_started) : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isContinue) {
|
if (isContinue) {
|
||||||
@ -3729,6 +3729,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
|
|||||||
activateSendButtons();
|
activateSendButtons();
|
||||||
showSwipeButtons();
|
showSwipeButtons();
|
||||||
setGenerationProgress(0);
|
setGenerationProgress(0);
|
||||||
|
streamingProcessor = null;
|
||||||
|
|
||||||
if (type !== 'quiet') {
|
if (type !== 'quiet') {
|
||||||
triggerAutoContinue(messageChunk, isImpersonate);
|
triggerAutoContinue(messageChunk, isImpersonate);
|
||||||
@ -3748,6 +3749,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
|
|||||||
showSwipeButtons();
|
showSwipeButtons();
|
||||||
setGenerationProgress(0);
|
setGenerationProgress(0);
|
||||||
console.log(exception);
|
console.log(exception);
|
||||||
|
streamingProcessor = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
} //rungenerate ends
|
} //rungenerate ends
|
||||||
|
Loading…
Reference in New Issue
Block a user