-
-
Notifications
You must be signed in to change notification settings - Fork 254
Open
Labels
Description
I think that the following voices definition should be an empty array [] insted of and object {}
cboard/src/providers/SpeechProvider/tts.js
Lines 152 to 162 in 8a794d5
| _getPlatformVoices() { | |
| let voices = {}; | |
| try { | |
| voices = synth.getVoices(); | |
| } catch (err) { | |
| console.log(err.message); | |
| synth = window.speechSynthesis; | |
| } | |
| // On Cordova, voice results are under `._list` | |
| return voices._list || voices; | |
| }, |
if an object is returned the following platformVoices.concat will throw an error and brak the app
cboard/src/providers/SpeechProvider/tts.js
Lines 226 to 227 in 8a794d5
| platformVoices = this._getPlatformVoices(); | |
| resolve(platformVoices.concat(elevenLabsVoices).concat(cloudVoices)); |