elevenlabs connect button

This commit is contained in:
ouoertheo
2023-08-25 08:45:37 -05:00
parent 44cd4287cb
commit 3ab9aee195

View File

@ -66,12 +66,11 @@ class ElevenLabsTtsProvider {
throw `Invalid setting passed to TTS Provider: ${key}` throw `Invalid setting passed to TTS Provider: ${key}`
} }
} }
$('#elevenlabs_tts_stability').val(this.settings.stability) $('#elevenlabs_tts_stability').val(this.settings.stability)
$('#elevenlabs_tts_similarity_boost').val(this.settings.similarity_boost) $('#elevenlabs_tts_similarity_boost').val(this.settings.similarity_boost)
$('#elevenlabs_tts_api_key').val(this.settings.apiKey) $('#elevenlabs_tts_api_key').val(this.settings.apiKey)
$('#tts_auto_generation').prop('checked', this.settings.multilingual) $('#tts_auto_generation').prop('checked', this.settings.multilingual)
$('#eleven_labs_connect').on('click',this.onConnectClick) $('#eleven_labs_connect').on('click', () => {this.onConnectClick()})
$('#elevenlabs_tts_settings').on('input',this.onSettingsChange) $('#elevenlabs_tts_settings').on('input',this.onSettingsChange)
this.checkReady() this.checkReady()