Home > other >  Huawei ML Kit Text to Speech Conversion Error
Huawei ML Kit Text to Speech Conversion Error

Time:10-15

I m working on the Translator application where I need to speak out what user has translated. By following the Huawei enter image description here

LogCat: Error enter image description here Any help would be really appreciated. Thanks.

CodePudding user response:

I have set the wrong person with English language. So changing this code of Line

.setPerson(MLTtsConstants.TTS_SPEAKER_FEMALE_ZH)

with

.setPerson(MLTtsConstants.TTS_SPEAKER_MALE_EN)

works perfectly fine.

  • Related