External APIs

Amazon Translate – Natural and fluent language translation

Fast, high-quality, and affordable neural machine translation service
Back to BLOCKS

About Amazon Translate – Natural and fluent language translation

Amazon Translate removes the complexity of building translation capabilities into your applications with a simple API call. This makes it easy to localize an application, or process multilingual data within your existing workflows. The neural translation engine is always learning from new and expanded datasets to produce more accurate and fluent translations for a wide range of use cases.

Amazon Translate is priced at $15 per million characters. Price is per character sent to the API for processing, including whitespace characters. It’s easy to get started with the Amazon Translate Free Tier. Upon signup, start translating up to 2M characters monthly, free for the first 12 months.

Try it Now
Categories:
External APIs External APIs
External APIs
External APIs
Bots & AI
Bots & AI
Chat & Social
Chat & Social
Last Updated:
20180319 at 00:52:20
Author:
PubNub
Additional Links:
Amazon Translate

Walkthrough:

Begin by adding the AWS keys to the vault storage by using the MY SECRETS feature from within the blocks editor. The block will need the AWS_access_key and AWS_secret_key values.

This PubNub Functions listens for all chats and allows translation even in private chats.

To trigger translation, event payload should contain 'translate' field in it with following keys:
  - location - name of key in event payload, which contain data for translation
  - source - code of language from which passed message should be translated
  - target - code of language to which passed message should be translated

Input:

chatEngineInstsance.emit('message', {
    text: 'hello!',
    translate: {
      location: 'text',
      source: 'en',
      target: 'es'
    }
});

Output:

chatEngineInstsance.on('message', (payload) => {
    console.log(payload.data.text) // will contain the translated text
});

Similar BLOCKS

Amazon Comprehend - Discover insights and relationships in text Icon Amazon Comprehend - Discover insights and relationships in text Use natural language processing (NLP) to extract insights about the content of documents without the... External APIs BLOCKS Details Subcategory Bots & AI BLOCKS Details Subcategory Chat & Social BLOCKS Details Subcategory Amazon Polly – Text-to-Speech Icon Amazon Polly – Text-to-Speech Turn text into lifelike speech using deep learning. External APIs BLOCKS Details Subcategory Bots & AI BLOCKS Details Subcategory Chat & Social BLOCKS Details Subcategory