diff --git a/public/scripts/extensions/tts/edge.js b/public/scripts/extensions/tts/edge.js index adb296f5a..eadfd6bee 100644 --- a/public/scripts/extensions/tts/edge.js +++ b/public/scripts/extensions/tts/edge.js @@ -53,7 +53,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) + $('#edge_tts_rate').on("input", () => {this.onSettingsChange()}) this.checkReady() console.info("Settings loaded") diff --git a/public/scripts/extensions/tts/elevenlabs.js b/public/scripts/extensions/tts/elevenlabs.js index 86ecfa1c4..d282c1512 100644 --- a/public/scripts/extensions/tts/elevenlabs.js +++ b/public/scripts/extensions/tts/elevenlabs.js @@ -88,7 +88,7 @@ class ElevenLabsTtsProvider { async onConnectClick() { // Update on Apply click return await this.updateApiKey().catch( (error) => { - throw error + toastr.error(`ElevenLabs: ${error}`) }) } diff --git a/public/scripts/extensions/tts/silerotts.js b/public/scripts/extensions/tts/silerotts.js index 0f2db6de8..3d0f3e101 100644 --- a/public/scripts/extensions/tts/silerotts.js +++ b/public/scripts/extensions/tts/silerotts.js @@ -63,7 +63,7 @@ class SileroTtsProvider { }, 2000); $('#silero_tts_endpoint').val(this.settings.provider_endpoint) - $('#silero_tts_endpoint').on("input", this.onSettingsChange) + $('#silero_tts_endpoint').on("input", () => {this.onSettingsChange()}) this.checkReady() diff --git a/public/scripts/extensions/tts/system.js b/public/scripts/extensions/tts/system.js index 102b0bf1b..473523aff 100644 --- a/public/scripts/extensions/tts/system.js +++ b/public/scripts/extensions/tts/system.js @@ -146,8 +146,8 @@ class SystemTtsProvider { $('#system_tts_pitch').val(this.settings.pitch || this.defaultSettings.pitch); // Trigger updates - $('#system_tts_rate').on("input", this.onSettingsChange) - $('#system_tts_rate').on("input", this.onSettingsChange) + $('#system_tts_rate').on("input", () =>{this.onSettingsChange()}) + $('#system_tts_rate').on("input", () => {this.onSettingsChange()}) $('#system_tts_pitch_output').text(this.settings.pitch); $('#system_tts_rate_output').text(this.settings.rate);