I work with TTS.
But I need to change the tts voice from female to male and vice versa.
I know I can do this with eSpeak. But the problem is that. On the settings page, when I select eSpeak TTS, the voice changes to male, and when I select Pico TTS, the voice becomes female. But when after changing the engine on the settings page, when I try to change the voice and try to use this changed voice in my application, it speaks only by male voice.
Downloading a third-party application from http://eyes-free.googlecode.com/svn/trunk/tts/
Then in my MainActivity app, I do below,
editText = (EditText) findViewById(R.id.EditText01); Button speak = (Button) findViewById(R.id.SpeakButton); speak.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub if(editText.getText().toString().equalsIgnoreCase("")) startActivity(new Intent(Main.this, ConfigurationManager.class)); else { tts = new TTS(Main.this, ttsInitListener, true ); } } });
But what I'm trying to do is not to enter the TextToSpeech settings page, changing only the male / female button, I want to change the voice for TTS.

Please help me do this. I have tried many times.
source share