TTS plugin adjustments

This commit is contained in:
SillyLossy
2023-05-05 18:14:33 +03:00
parent f9d3120338
commit 99b2f499d3
2 changed files with 10 additions and 4 deletions

View File

@ -87,7 +87,7 @@ class SystemTtsProvider {
return speechSynthesis
.getVoices()
.sort((a, b) => a.lang.localeCompare(b.lang) || a.name.localeCompare(b.name))
.map(x => ({ name: x.name, voice_id: x.voiceURI, preview_url: '', lang: x.lang }));
.map(x => ({ name: x.name, voice_id: x.voiceURI, preview_url: false, lang: x.lang }));
}
previewTtsVoice(voiceId) {