/Google-Cloud-TTS-Android

Google Cloud Platform Text To Speech library use API_KEY on Android Example.

Primary LanguageJava

Google Cloud Platform TTS use API-KEY on Android.

How to use it?

Step 1: Download file

git clone https://github.com/changemyminds/Google-Cloud-TTS-Android.git

Step 2: Set up API Key

Go to here and change "YOUR_API_KEY" to your Google Cloud API Key.

static final String API_KEY = "YOUR_API_KEY";

Note
If you don't know the Google API Key, please see Google document.
Don't forget your API-Key Application restrictions and API restrictions must select None and Don't restrict key.
image

Step 3: Run app

See the following achievement.
image
image

Test language and voice

If you want to test voice or find support language, you can go here to test online.

Reference

Google Cloud Java Issue
Google Cloud Text-to-speech
OkHttp
Gson