BLOCKS Reference

Block Reference

Machine Learning

Text translation

This BLOCK calls on 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.

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.

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 Speech recognition BLOCK, you can translate the text data stored in the "Results variable" of the Speech recognition BLOCK. In this case, make sure that the "Text data variable" of the Text translation BLOCK and the "Results variable" of the Speech recognition BLOCK match.

Property Explanation
BLOCK name Configure the name displayed on this BLOCK.

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 contains the text data to be translated. The language of the text 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 translated text.
BLOCK memos Make notes about this BLOCK.