update checkReady. add voiceMap ui select

This commit is contained in:
ouoertheo
2023-08-23 08:27:53 -05:00
parent 56fcf1cbb8
commit 5b43fe25e8
8 changed files with 234 additions and 131 deletions

View File

@ -9,7 +9,6 @@ class NovelTtsProvider {
//########//
settings
ready = false
voices = []
separator = ' . '
audioElement = document.createElement('audio')
@ -95,13 +94,7 @@ class NovelTtsProvider {
// Perform a simple readiness check by trying to fetch voiceIds
// Doesnt really do much for Novel, not seeing a good way to test this at the moment.
async checkReady(){
try {
await this.fetchTtsVoiceIds()
this.ready = true
} catch {
this.ready = false
}
await this.fetchTtsVoiceIds()
}
async onApplyClick() {