| 421 | async function tts(text, voiceId, char) { | 421 | async function tts(text, voiceId, char) { |
| 422 | async function processResponse(response) { | 422 | async function processResponse(response) { |
| 423 | // RVC injection | 423 | // 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); |
| 426 | | 426 | |
| 427 | await addAudioJob(response, char); | 427 | await addAudioJob(response, char); |