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

@ -34,7 +34,7 @@ class EdgeTtsProvider {
saveTtsProviderSettings()
}
loadSettings(settings) {
async loadSettings(settings) {
// Pupulate Provider UI given input settings
if (Object.keys(settings).length == 0) {
console.info("Using default TTS Provider settings")
@ -54,7 +54,7 @@ class EdgeTtsProvider {
$('#edge_tts_rate').val(this.settings.rate || 0);
$('#edge_tts_rate_output').text(this.settings.rate || 0);
$('#edge_tts_rate').on("input", () => {this.onSettingsChange()})
this.checkReady()
await this.checkReady()
console.info("Settings loaded")
}