Change all TTS providers loading to async

This commit is contained in:
Cohee
2023-08-28 21:58:46 +03:00
parent b51511b99f
commit ac78d51d59
7 changed files with 22 additions and 22 deletions

View File

@ -50,7 +50,7 @@ class ElevenLabsTtsProvider {
}
loadSettings(settings) {
async loadSettings(settings) {
// Pupulate Provider UI given input settings
if (Object.keys(settings).length == 0) {
console.info("Using default TTS Provider settings")
@ -72,8 +72,8 @@ class ElevenLabsTtsProvider {
$('#tts_auto_generation').prop('checked', this.settings.multilingual)
$('#eleven_labs_connect').on('click', () => {this.onConnectClick()})
$('#elevenlabs_tts_settings').on('input',this.onSettingsChange)
this.checkReady()
await this.checkReady()
console.info("Settings loaded")
}