From 8be21fc5c40d4108974598101d80359df50ca26e Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 26 Aug 2024 10:30:17 +0300 Subject: [PATCH] Swap RVC function/setting checks --- public/scripts/extensions/tts/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/extensions/tts/index.js b/public/scripts/extensions/tts/index.js index 9b4ce71ea..4d1affa91 100644 --- a/public/scripts/extensions/tts/index.js +++ b/public/scripts/extensions/tts/index.js @@ -421,7 +421,7 @@ function completeTtsJob() { async function tts(text, voiceId, char) { async function processResponse(response) { // RVC injection - if (extension_settings.rvc.enabled && typeof window['rvcVoiceConversion'] === 'function') + if (typeof window['rvcVoiceConversion'] === 'function' && extension_settings.rvc.enabled) response = await window['rvcVoiceConversion'](response, char, text); await addAudioJob(response, char);