Nooder / WaveNet-Text-To-Speech-App

Android app protype using the wavenet api
1 stars 1 forks source link

The file Google_Credentials.java in .gitignore no details in README.md #1

Open faiz276482 opened 4 years ago

faiz276482 commented 4 years ago

Can you please add a demo in readme.md so that we will know exactly what we need to make inside that class in order to make the app work?

Nooder commented 3 years ago

Hello - The credential file is from my Google Service Account and just contains the private key information for the API for my personal Google Cloud.

Here is an example of what it would look like with my personal info changed:

package com.example.wavenet_text_to_speech_app;

public class Google_Credentials {
    public static final String GOOGLE_CREDENTIALS =
            "{\n" +
                    "  \"type\": \"service_account\",\n" +
                    "  \"project_id\": \"text-to-speech-project\",\n" +
                    "  \"private_key_id\": \"00975225a1dab7c\",\n" +
                    "  \"private_key\": \"-----BEGIN PRIVATE KEY------\n5zFkaLx5BQpfVyJhYwXyLXgqVEWaDWDL+HOGyYwKd1j0tO0sSi4epgBttdovGk7b\\nNbeQ6rUjr/D\mX8IXiX+s9tF5Zw99w\\nau7JVd7NKp4eYjMERlWJc3svsMIhvKvGoptjVSoofRZoxXTYvtsRwnr7uoTSaCe3\\nTbSUW==\\n-----END PRIVATE KEY-----\\n\",\n" +
                    "  \"client_email\": \"main-999@text-to-speech-project-7652.iam.gserviceaccount.com\",\n" +
                    "  \"client_id\": \"273117717558\",\n" +
                    "  \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n" +
                    "  \"token_uri\": \"https://oauth2.googleapis.com/token\",\n" +
                    "  \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n" +
                    "  \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/main-999%40text-to-speech-project-7652.iam.gserviceaccount.com\"\n" +
                    "}";
}

Hope that helps 😃