Swap RVC function/setting checks

8be21fc5c40d4108974598101d80359df50ca26e

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/scripts/extensions/tts/index.js+1 -1
@@ -421,7 +421,7 @@ function completeTtsJob() {
421async function tts(text, voiceId, char) {421async function tts(text, voiceId, char) {
422 async function processResponse(response) {422 async function processResponse(response) {
423 // RVC injection423 // RVC injection
424 if (extension_settings.rvc.enabled && typeof window['rvcVoiceConversion'] === 'function')424 if (typeof window['rvcVoiceConversion'] === 'function' && extension_settings.rvc.enabled)
425 response = await window['rvcVoiceConversion'](response, char, text);425 response = await window['rvcVoiceConversion'](response, char, text);
426426
427 await addAudioJob(response, char);427 await addAudioJob(response, char);