I am planning on getting an API key and use the Speech services provided by Google. But I can't find any documentation on how to use the text to speech api of Google.
3 Answers
simple rules for work this :
q = for pass your language encode. tl = for pass your language name
simple try this :

- 696
- 8
- 12
Google doesn't actually have an official Text-to-speech API. You can use their google translate service to get some results, but again it's not officially supported so no docs are available as far as I know.
Google has Cloud Speech API, which does the opposite thing, i.e converts speech to text. It seems people often confuse the two, thinking you can use cloud speech for text-to-speech.
This SO question might be a good starting point on how to use google translate for text-to-speech. Although personally I would try and find an API which is designed for that task.

- 1,461
- 2
- 14
- 37
The accepted answer is not true anymore, Google does offer a Text-to-Speech API now, or to be more specific, Google Cloud does. Here is a Quickstart guide.

- 2,501
- 1
- 20
- 35