Skip to content

Commit 2026b72

Browse files
committed
continued
1 parent 94b0edf commit 2026b72

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

js/tts-engines.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ function PremiumTtsEngine(serviceUrl) {
213213
this.getVoices = async function() {
214214
const premiumVoiceList = await getSetting("premiumVoiceList")
215215
if (!premiumVoiceList || premiumVoiceList.expire < Date.now()) refreshVoiceList()
216-
return premiumVoiceList ? premiumVoiceList.items : voices
216+
return (premiumVoiceList ? premiumVoiceList.items : voices)
217+
.concat(
218+
{voiceName: "ReadAloud Generic Voice", autoSelect: true},
219+
)
217220
}
218221
async function refreshVoiceList() {
219222
try {
@@ -362,9 +365,6 @@ function PremiumTtsEngine(serviceUrl) {
362365
.map(function(item) {
363366
return {voiceName: item.voice_name, lang: item.lang};
364367
})
365-
.concat(
366-
{voiceName: "ReadAloud Generic Voice", autoSelect: true},
367-
)
368368
}
369369

370370

0 commit comments

Comments
 (0)