Android TextToSpeech, change gender voices

2019-07-26 04:35发布

问题:

I am about to try to make an application that when you pass by params a language and a type of voice (male or female). I do know the language change, as follows here:

tts.setLanguaje(Locale loc) 

But as I look and read can not I find a way to change the voice for the languages you have available more than one type of voice.

Please help me and Thank you very much.

回答1:

US english in android don't support multi gender speaking facility.But UK english can. First you have to download(if not exist) the Text-to-Speech UK english pack.For that goto setting->Languages and input->click on right icon of prefered engine->Language->UK