| 262 | console.debug('AllTalkTTS: Settings loaded'); | 262 | console.debug('AllTalkTTS: Settings loaded'); |
| 263 | try { | 263 | try { |
| 264 | // Check if TTS provider is ready | 264 | // Check if TTS provider is ready |
| | 265 | this.setupEventListeners(); |
| | 266 | this.updateLanguageDropdown(); |
| 265 | await this.checkReady(); | 267 | await this.checkReady(); |
| 266 | await this.updateSettingsFromServer(); // Fetch dynamic settings from the TTS server | 268 | await this.updateSettingsFromServer(); // Fetch dynamic settings from the TTS server |
| 267 | await this.fetchTtsVoiceObjects(); // Fetch voices only if service is ready | 269 | await this.fetchTtsVoiceObjects(); // Fetch voices only if service is ready |
| 268 | await this.fetchRvcVoiceObjects(); // Fetch RVC voices | 270 | await this.fetchRvcVoiceObjects(); // Fetch RVC voices |
| 269 | this.updateNarratorVoicesDropdown(); | 271 | this.updateNarratorVoicesDropdown(); |
| 270 | this.updateLanguageDropdown();
| | |
| 271 | this.setupEventListeners();
| | |
| 272 | this.applySettingsToHTML(); | 272 | this.applySettingsToHTML(); |
| 273 | updateStatus('Ready'); | 273 | updateStatus('Ready'); |
| 274 | } catch (error) { | 274 | } catch (error) { |