From ce648297ef4c36f910e68c326ff851354f26f34e Mon Sep 17 00:00:00 2001 From: ouoertheo Date: Mon, 22 May 2023 08:15:02 -0500 Subject: [PATCH 1/2] fix current tts job not clearing on empty text --- public/scripts/extensions/tts/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/scripts/extensions/tts/index.js b/public/scripts/extensions/tts/index.js index d7664e4d2..06a36ea6f 100644 --- a/public/scripts/extensions/tts/index.js +++ b/public/scripts/extensions/tts/index.js @@ -1,3 +1,4 @@ +import { config } from 'yargs' import { callPopup, cancelTtsPlay, isMultigenEnabled, is_send_press, saveSettingsDebounced } from '../../../script.js' import { extension_settings, getContext } from '../../extensions.js' import { getStringHash } from '../../utils.js' @@ -174,6 +175,7 @@ function debugTtsPlayback() { "audioQueueProcessorReady": audioQueueProcessorReady, "ttsJobQueue": ttsJobQueue, "currentTtsJob": currentTtsJob, + "ttsConfig": extension_settings.tts } )) } @@ -372,6 +374,7 @@ async function processTtsQueue() { try { if (!text) { console.warn('Got empty text in TTS queue job.'); + completeTtsJob() return; } From d90ea41350514f9aefbbc0628f193cf08f3a77e0 Mon Sep 17 00:00:00 2001 From: ouoertheo Date: Mon, 22 May 2023 08:18:46 -0500 Subject: [PATCH 2/2] derp --- public/scripts/extensions/tts/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/public/scripts/extensions/tts/index.js b/public/scripts/extensions/tts/index.js index 06a36ea6f..52722712a 100644 --- a/public/scripts/extensions/tts/index.js +++ b/public/scripts/extensions/tts/index.js @@ -1,4 +1,3 @@ -import { config } from 'yargs' import { callPopup, cancelTtsPlay, isMultigenEnabled, is_send_press, saveSettingsDebounced } from '../../../script.js' import { extension_settings, getContext } from '../../extensions.js' import { getStringHash } from '../../utils.js'