BLOCKS Reference

Block Reference

Machine Learning

Translate API

This block calls upon the Google Translate API to translate text data from one language into another.

This BLOCK is currently in beta. Be aware that the beta version of this BLOCK will become unavailable post official release.
*Please make use of the official BLOCK once released.

Due to its nature as a beta release, there is the possibility that some functions may not execute properly. We appreciate feedback from users, through the BLOCKS Forum or direct contact, regarding bugs or ways to improve BLOCKS.

warning Note for Self-Service Plan users:
The Google Translate API must be enabled to use this BLOCK. For details, refer to Basic Guide > Hints > Enabling Google APIs

By connecting this BLOCK after the Cloud Speech API BLOCK, you can translate the text data stored in the "Results variable" of the Cloud Speech API BLOCK. In this case, make sure that the "Text data variable" of the Translation API BLOCK and the "Results variable" of the Cloud Speech API BLOCK match.

Property name Explanation
BLOCK name Designate a name for BLOCKS. The names will be displayed on the BLOCKS.
GCP API Key

Designate the GCP API key to be used by this BLOCK.

To prepare a GCP API key, do the following:

  1. Open the Google Cloud Platform Console
  2. Choose your project
  3. Choose "Credentials" in the sidebar
  4. Select your API key
Text data variable Designate the variable that refers to the text data to be translated. The language of the text data is automatically identified.
Translation language

Designate the language for the text data to be translated into.

Supported languages include Chinese, English, Hindi, Spanish, Arabic, Korean, and many others.

For a list of all available languages, see Google's Supported languages page.

Results variable Designate the variable that will store the resultant translated text.
BLOCK memos Make any comments regarding BLOCKS.