Random Forkson
Random Forkson

Reputation: 71

How to use Google Text to Speech API?

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.

Upvotes: 0

Views: 6157

Answers (3)

Alejandro Cotilla
Alejandro Cotilla

Reputation: 2621

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.

Upvotes: 1

ivanibash
ivanibash

Reputation: 1491

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.

Upvotes: 1

Related Questions