File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments