'How to choose male voice in Google text to Speech API

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.



Solution 1:[1]

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

Solution 2:[2]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Prokash Sarkar
Solution 2 Kuldeep Jindani