3

I want male voice output from google text to speech API, is there any parameter to send for male voice, Now i'm getting female voice(default). i'm Using below URL. http://translate.google.com/translate_tts?ie=UTF-8&total=1&idx=0&textlen=32&client=tw-ob&q=Hello+world&tl=en Please help me to solve this.

Thanks & Regards

Thiru.

  • guess it's not possible in a conventional way – Avinash Roy May 11 '17 at 11:42
  • Please try to read and do with this, [One](http://stackoverflow.com/questions/37164060/android-texttospeech-change-gender-voices) [Two](http://stackoverflow.com/questions/9815245/android-text-to-speech-male-voice) [Three](http://stackoverflow.com/questions/14115458/is-it-possible-to-embed-tts-in-android) – Sunisha Guptan May 11 '17 at 11:45

2 Answers2

0

According to the official REST API documentation,

There is no way to configure the voice. Neither pitch, speed nor gender. However you can get the translated text and output it using Google’s Text-to-speech. For this you need to manually download the male voice file. See Google Text-to-speech adds multiple male and female voices

Prokash Sarkar
  • 11,723
  • 1
  • 37
  • 50
  • Hi Thank you for your information.. but i cant able to use downloaded male voice which is in apk file. i'm using "wget -q -U Mozilla -O output.wav URL" this way to get output voice and processing with that output file. – Thirunavukkarasu S May 11 '17 at 12:01
0

you have to set pitch of voice you can not set male voice...

 TTS.setPitch();

value u can set but it is very bad u should try another texttospeech engine or stay with default female voice.