Set up Google Cloud Speech API
This guide provides step-by-step instruction for configuring the Google Cloud Speech API, a speech to text conversion powered by machine learning.
MiaRec uses the Google Cloud Speech API to transcribe voice recordings to text. An transcribed text is used further for speech analytics in MiaRec application.
The Google Speech API recognizes over 110 languages and variants. MiaRec application automatically upload audio to Google Cloud for transcription and retrieves the results back into the application.

1. Create a Google Cloud Platform account

  1. 1.
    Sign in to your Google account. If you don't already have one, sign up for a new account.
  2. 2.
    Open GCP Console at
  3. 3.
    If you were not using Google Cloud Platform before, then click Sign up for a free trial button in the top of page or Try for free in the middle of screen.
4. Provide Customer info (address, primary contact and payment method / credit card or bank account).
5. The Welcome screen is displayed when account is activated.

2. Create new project

  1. 1.
    Create new project by clicking on My First Project in the top menu and then clicking + button.
2. Choose the name for the project. In our example, we choose miarec-speech-analytics. Note the Project ID for your project. Google requires the project ID to be a globally unique identifier.

3. Enable Google Cloud Speech API for your project

  1. 1.
    Select the newly created project from the list.
2. Navigate to APIs & Services.
3. Click Enable APIs and Services
4. Type speech in the Search box to and click on Google Cloud Speech API
5. Click Enable button for Google Cloud Speech API

4. Create a service account key

  1. 1.
    Navigate to Credentials in the left pane and click Create credentials button. Choose Service account key from the drop-down menu.
2. Choose the Service account name and set Role to Project -> Owner and click Create button.
3. Save the JSON file to secure place. You will need to import this file into MiaRec application.
JSON file looks like (the private key is stored in the private_key attribute):
"type": "service_account",
"project_id": "miarec-speech-analytics",
"private_key_id": "123456789f276ed94a5bd2a11ee645678945679",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvAIBA...
"client_email": "[email protected]",
"client_id": "12345678945678945613",
"auth_uri": "",
"token_uri": "",
"auth_provider_x509_cert_url": "",
"client_x509_cert_url": ""