mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Swap RVC function/setting checks
This commit is contained in:
@@ -421,7 +421,7 @@ function completeTtsJob() {
|
|||||||
async function tts(text, voiceId, char) {
|
async function tts(text, voiceId, char) {
|
||||||
async function processResponse(response) {
|
async function processResponse(response) {
|
||||||
// RVC injection
|
// 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);
|
response = await window['rvcVoiceConversion'](response, char, text);
|
||||||
|
|
||||||
await addAudioJob(response, char);
|
await addAudioJob(response, char);
|
||||||
|
Reference in New Issue
Block a user