fix: fixed several wallpaper enginer related issues

This commit is contained in:
Haoyu Xu
2025-02-24 19:43:59 +08:00
parent 185289563c
commit 2be207f501
6 changed files with 14 additions and 21 deletions

View File

@@ -148,9 +148,10 @@ export default class Voice {
return folders
}
#getVoices() {
return this.#charwordTable.subtitleLangs[this.#config.subtitle.language]
.default
#getVoices(lang = null) {
return this.#charwordTable.subtitleLangs[
lang ? lang : this.#config.subtitle.language
].default
}
#playEntryVoice() {
@@ -158,7 +159,7 @@ export default class Voice {
}
#playSpecialVoice(matcher) {
const voices = this.#getVoices()
const voices = this.#getVoices(buildConfig.voice_default_region)
const voiceId = Object.keys(voices).find(
(e) => voices[e].title === matcher
)