How to build a Text-to-Speech serverless web application with Amazon Polly

Lab Details

  1. This lab walks you through creating a serverless web application hosted in S3 bucket which will take a text input from the user and convert it to an audio file using Amazon Polly and store it in S3 bucket. The user can list the audio file in the web page and play the file. You can also select a language to which the text needs to be converted.

  2. You will practice the lab using Amazon Polly, IAM, Lambda, SNS, API Gateway, DynamoDB, S3.

  3. Duration: 120 minutes

  4. AWS Region: US East (N. Virginia)

Introduction

What is Amazon Polly?

  • Amazon Polly is a service that turns text into speech, allowing you to create applications that speak, and build speech-enabled products.

  • Amazon Polly is an Amazon AI service that uses advanced deep learning technologies to synthesize speech that sounds like a human voice. It currently includes 47 lifelike voices in 24 languages, so you can select the ideal voice and build speech-enabled applications that work in many different countries.

  • You can also create a custom voice for your organization. This is a custom engagement where you will work with the Amazon Polly team to build an NTTS voice for the exclusive use of your organization.

Benefits

  1. Natural sounding voices

  2. Store & redistribute speech

  3. Real-time streaming

  4. Customize & control speech output

Amazon API Gateway

  • Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale. 

  • APIs act as the front door for applications to access data, business logic, or functionality from your backend services. 

  • API Gateway handles all the tasks involved in accepting and processing up to hundreds of thousands of concurrent API calls, including traffic management, CORS support, authorization and access control, throttling, monitoring, and API version management. 

  • Using API Gateway, you can create RESTful APIs and WebSocket APIs that enable real-time two-way communication applications. API Gateway supports containerized and serverless workloads, as well as web applications. 

  • AWS Lambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume.

  • With Lambda, you can run code for virtually any type of application or backend service - all with zero administration. Just upload your code and Lambda takes care of everything required to run and scale your code with high availability. You can set up your code to automatically trigger from other AWS services or call it directly from any web or mobile app.

IAM

  • Stands for Identity and Access Management.

  • Web service that helps the user securely control access to AWS resources.

  • Used to control who is authenticated and authorized to use AWS resources.

  • The first "identity" is the creation of an account in AWS portal.  On providing the email and password an Identity is created, and that's the "root user" holding all the permissions to access all resources in AWS.

  • The primary resources in IAM are users, groups, roles, policies, and identity providers.

  • IAM Group is a collection of IAM Users. You use groups to specify permissions for a collection of users, which can make those permissions easier to manage for those users.

  • IAM roles are like IAM Users in that they are both identities with permission policies that determine what the owner can access.

  • IAM Roles do not have any credentials associated with them.

  • IAM Roles are intended to be assumable by anyone who needs them.

  • IAM can be used from the AWS CLI, AWS SDK and AWS Management Console.

Tasks

  1. Launching Lab Environment.

  2. Create a S3 Bucket.

  3. Create an IAM Role.

  4. Create a DynamoDB Table.

  5. Create a SNS Topic.

  6. Create insert Lambda functions.

  7. Create process Lambda functions.

  8. Create list Lambda functions.

  9. Create an API Gateway.

  10. Host a Serverless Application.

  11. Test the application.

  12. Validation of the lab.

Architecture Diagram



Join Whizlabs_Hands-On to Read the Rest of this Lab..and More!

Step 1 : Login to My-Account
Step 2 : Click on "Access Now" to view the course you have purchased
Step 3 : You will be taken to our Learn Management Solution (LMS) to access your Labs,Quiz and Video courses