Build a transcription app with authenticated users - Amazon SDK for JavaScript
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

The Amazon SDK for JavaScript V3 API Reference Guide describes in detail all the API operations for the Amazon SDK for JavaScript version 3 (V3).

Build a transcription app with authenticated users

In this tutorial, you learn how to:

  • Implement authentication using an Amazon Cognito identity pool to accept users federated with a Amazon Cognito user pool.

  • Use Amazon Transcribe to transcribe and display voice recordings in the browser.

The scenario

The app enables users to sign up with a unique email and username. On confirmation of their email, they can record voice messages that are automatically transcribed and displayed in the app.

How it works

The app uses two Amazon S3 buckets, one to host the application code, and another to store transcriptions. The app uses an Amazon Cognito user pool to authenticate your users. Authenticated users have IAM permissions to access the required Amazon services.

The first time a user records a voice message, Amazon S3 creates a unique folder with the user’s name in the Amazon S3 bucket for storing transcriptions. Amazon Transcribe transcribes the voice message to text, and saves it in JSON in the user’s folder. When the user refreshes the app, their transcriptions are displayed and available for downloading or deletion.

The tutorial should take about 30 minutes to complete.