mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Set RVC version match correctly
This commit is contained in:
@ -262,13 +262,13 @@ class AllTalkTtsProvider {
|
|||||||
console.debug('AllTalkTTS: Settings loaded');
|
console.debug('AllTalkTTS: Settings loaded');
|
||||||
try {
|
try {
|
||||||
// Check if TTS provider is ready
|
// Check if TTS provider is ready
|
||||||
|
this.setupEventListeners();
|
||||||
|
this.updateLanguageDropdown();
|
||||||
await this.checkReady();
|
await this.checkReady();
|
||||||
await this.updateSettingsFromServer(); // Fetch dynamic settings from the TTS server
|
await this.updateSettingsFromServer(); // Fetch dynamic settings from the TTS server
|
||||||
await this.fetchTtsVoiceObjects(); // Fetch voices only if service is ready
|
await this.fetchTtsVoiceObjects(); // Fetch voices only if service is ready
|
||||||
await this.fetchRvcVoiceObjects(); // Fetch RVC voices
|
await this.fetchRvcVoiceObjects(); // Fetch RVC voices
|
||||||
this.updateNarratorVoicesDropdown();
|
this.updateNarratorVoicesDropdown();
|
||||||
this.updateLanguageDropdown();
|
|
||||||
this.setupEventListeners();
|
|
||||||
this.applySettingsToHTML();
|
this.applySettingsToHTML();
|
||||||
updateStatus('Ready');
|
updateStatus('Ready');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@ -388,7 +388,7 @@ class AllTalkTtsProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async fetchRvcVoiceObjects() {
|
async fetchRvcVoiceObjects() {
|
||||||
if (this.settings.server_version !== 'v1') {
|
if (this.settings.server_version == 'v1') {
|
||||||
console.log('Skipping RVC voices fetch for V1 server');
|
console.log('Skipping RVC voices fetch for V1 server');
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user