Swap RVC function/setting checks

This commit is contained in:
Cohee
2024-08-26 10:30:17 +03:00
parent d014b6bbea
commit 8be21fc5c4

View File

@ -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);