Merge pull request #791 from pyrater/staging

Fix for dropdown list not populating
This commit is contained in:
Cohee
2023-07-27 15:15:25 +03:00
committed by GitHub

View File

@@ -105,6 +105,10 @@ class CoquiTtsProvider {
const ttsVoicesInput = document.getElementById('tts_voices');
const ttsPreviewInput = document.getElementById('tts_preview');
ttsProviderSelect.addEventListener('click', () => {
this.getModels();
});
// Add an event listener to the 'change' event of the tts_provider select element
ttsProviderSelect.addEventListener('change', () => {
// Check if the selected value is 'Coqui'