PubNub Integration

Amazon Translate – Natural and fluent language translation

In-app chat

In-app chat

Bots & AI

Bots & AI

Chat & Social

Chat & Social

External APIs

External APIs

Last Updated:

2019/05/14

Author:

PubNub

APISign-upDocumentation

Fast, high-quality, and affordable neural machine translation service

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 – Natural and fluent language translation

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:

{
    "data": {
        "translate": {
            "text": "Hello",
            "source": "en",
            "target": "es"
        }
    }
}

Output:

{
    "data": {
        "translate": {
            "text": "Hello",
            "source": "en",
            "target": "es"
        },
        "text": "Hola"
    }
}

Feedback & Support

Need help? Contact PubNub Support.

More integrations for you

Amazon Comprehend - Discover insights and relationships in text

    Amazon Comprehend - Discover insights and relationships in text

    Use natural language processing (NLP) to find insights and relationships in...

    Learn more
    Amazon Polly – Text-to-Speech

      Amazon Polly – Text-to-Speech

      Turn text into lifelike speech using deep learning

      Learn more

      Talk to an expert

      Contact Sales