Integrate Yeastar P-Series Software Edition with Google Cloud Speech-to-Text Service

Before using Voicemail Transcription feature, you need to integrate Yeastar P-Series Software Edition with a third-party Speech-to-Text service. This topic describes how to configure the integration of Google Cloud Speech-to-Text (STT) service with Yeastar P-Series Software Edition.

Limitations

Audio length: 1 minute
The integration of Yeastar P-Series Software Edition with Google Cloud Speech-to-Text service uses the Synchronous Recognition method for speech recognition, which can process up to 1 minute of speech audio data.
Service cost
Google Cloud Speech-to-Text service provides a free amount of 60 minutes per month, you will be charged if the minutes of audio processed per month exceeds the free amount. For more information about the pricing, see Google Cloud Speech-to-Text Pricing.

Prerequisites

  • You need to create a Google Cloud billing account.
  • Make sure the Yeastar P-Series Software Edition can access Google services.
    1. Log in to PBX web portal, go to Maintenance > Troubleshooting > IP Ping.
    2. In the Target Host field, enter www.google.com.
    3. Click Start.
    4. Check the Result box to see if the packet transmission is normal.
      Note: If the PBX can not access Google service, go to System > Network > Basic Settings to check and configure the PBX network.
    5. Click Stop to stop pinging.

Procedure

Get the API key from Google Cloud Platform

Step1. Create a project on Google Cloud Platform
  1. Log in to Google Cloud Platform.
  2. In the top bar, click My First Project to open the project list.

  3. On the Select a project page, click NEW PROJECT in the top-right corner.

  4. On the New Project page, set a project name, and click CREATE.

    A new project is created, you can select the new project in the project list.

Step2. Enable Speech-to-Text API service on Google Cloud Platform
  1. In the top-left conner, click to open the navigation menu, and go to API & Services > Dashboard.
  2. Click ENABLE APIS AND SERVICES.

  3. In the API Library, enter speech in the search box and select Cloud Speech-to-Text API.

  4. Click ENABLE button for the Cloud Speech-to-Text API.

    The Speech-to-Text service is enabled.

Step3. Create API credentials on Google Cloud Platform
  1. In the left navigation panel, go to API & Services > Credentials.

  2. Click CREATE CREDENTIALS and select API key.

  3. In the pop-up window, click RESTRICT KEY.
    Important: For security purpose, you need to restrict your API key, ensuring only authorized requests are made with your API key.

  4. On the Restrict and rename API key page, complete the following configurations.
    1. In the Name field, specify the API key name.
    2. In the Application restrictions section, select None.
    3. In the API restrictions section, select Restrict key.
    4. Enter speech in the search box below to search and select the Cloud Speech-to-Text API, then click OK.
    5. Click Save to apply your configuration.

      The API key is only allowed to call the Cloud Speech-to-Text API.

  5. Go back to the Credentials page, in the API key section, click to copy the restricted API key.

Enable Speech to Text (STT) integration on Yeastar P-Series Software Edition

  1. Log in to PBX web portal, go to Integrations > Speech to Text.
  2. In STT API Integration section, fill in the required API credentials.
    • Service: Select Google Cloud.
    • API Key: Paste the restricted API key copied in the former procedure.

  3. In Settings section, select the transcription language.

    The audio messages will be transcribed to text in the selected language.

    Note: If the language of voicemail is different from the selected language, the transcribed text will be inaccurate.
  4. Click Save.

    If the integration succeeds, the Status in the STT API Integration section will display Connected.

What to do next

After the STT API integration succeeds, go to Call Features > Voicemail > Voicemail Settings to enable the Voicemail Transcription feature. For more information, see Enable or Disable Voicemail Transcription.