Skip to content

Commit 5790460

Browse files
committed
Fix: ensure consistent ElevenLabs voice ordering in getVoices
1 parent 4de9152 commit 5790460

File tree

1 file changed

+3
-3
lines changed
  • src/providers/SpeechProvider

1 file changed

+3
-3
lines changed

src/providers/SpeechProvider/tts.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,17 +203,17 @@ const tts = {
203203
synth.removeEventListener('voiceschanged', voiceslst);
204204

205205
if (!voices || voices.length === 0) {
206-
resolve(cloudVoices.concat(elevenLabsVoices));
206+
resolve(elevenLabsVoices.concat(cloudVoices));
207207
return null;
208208
}
209209

210210
platformVoices = voices._list || voices;
211-
resolve(platformVoices.concat(cloudVoices).concat(elevenLabsVoices));
211+
resolve(platformVoices.concat(elevenLabsVoices).concat(cloudVoices));
212212
});
213213
} else if (isCordova()) {
214214
// Samsung devices on Cordova
215215
platformVoices = this._getPlatformVoices();
216-
resolve(platformVoices.concat(cloudVoices).concat(elevenLabsVoices));
216+
resolve(platformVoices.concat(elevenLabsVoices).concat(cloudVoices));
217217
}
218218
});
219219
},

0 commit comments

Comments
 (0)