How does it work?
After watching and playing with the app, you can find the steps for developing the features below.
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.
In this post, I have shown how easy is to use AWS AI services like Amazon Translate, Polly and Rekognition for learning new languages.
You can find the code here.
My other post on AWS Rekognition, Lex and Polly is below:
I will continue to write about AWS AI services.
If you liked this post, please share or clap.
Also, I would like to hear your comments about different use cases of AWS AI services.