You Can’t Fail To Learn A New Language With These AWS AI Services: Translate, Rekognition, Polly

After watching and playing with the app, you can find the steps for developing the features below.

AWS JavaScript SDK

For this app, I have used AWS JavaScript SDK to access AWS services from the browser. AWS Translate is not included in the default build. To use these services in the browser we can use SDK Builder. Go to SDK Builder site, Select Translate and click ‘Build’ to download your customized AWS JS SDK.

Initializing AWS Services

To use AWS services, you should initialize them by calling the methods shown below.

Initializing Google Services

Google API is initialized by using the functions shown below.

Using AWS Translate API

For translating text from one language to another, AWS Translate API TranslateText method is used like below.

Translating Speech To Text Using Google Speech to Text API

After the audio data is captured in the browser, the speech is turned into the text using Google Speech API recognize method.

Reading Text in Images Using Amazon Rekognition

When we click the video in the app, a picture is taken and sent to the Amazon Rekognition DetectText method as shown below.

Converting Text To Speech Using Amazon Poly

To read aloud a text in a specified language, Amazon Polly SynthesizeSpeech method is used.

Summary

In this post, I have shown how easy is to use AWS AI services like Amazon Translate, Polly and Rekognition for learning new languages.