tom-s / speak-tts

80 stars 20 forks source link

Arabic Language not recognised : An error occured while initializing : Error setting voice. The voice you passed is not valid or the voices have not been loaded yet. #25

Closed abdoutech93 closed 4 years ago

abdoutech93 commented 4 years ago
this.speach.init(this.config[SPEACH_VENDOR]).then((data) => {
                    console.log("Speech is ready, voices are available", data)
                }).catch(e => {
                    console.error("ERROR tts : An error occured while initializing : ", e)
                })

the content of this.config[SPEACH_VENDOR] : lang: "ar-AR" pitch: 1 rate: 1 splitSentences: true voice: "" volume: 1

tom-s commented 4 years ago

You pass an empty string for voice

abdoutech93 commented 4 years ago

what should be the voice value ?