Introducing the all new marketplace Learn more here. Feedback needed.

Application icon
Audio Flashcards

Setting up Amazon Polly

Cover Image for Setting up Amazon Polly
Peter from Audio Flashcards
Peter from Audio Flashcards

To integrate Amazon Polly's text-to-speech services with Audio flashcards, you will need to follow several key steps, creating an AWS account, obtaining credentials, setting up an IAM user, and generating an access key. This process is best suited for users with advanced technical skills due to its complexity. It's important to note that AWS is a paid service, although it often offers a 12-month free trial period. You are solely responsible for any costs incurred while using this service; you can review the pricing details at Amazon Polly Pricing Details.

You might wonder why you'd bother with all these steps when your device already has built-in text-to-speech capabilities. As of currently, the output quality and overall listenability of speech generated by Amazon Polly surpass that of standard smartphone devices. While this distinction may evolve in the future, currently, leveraging Amazon Polly offers a superior auditory experience for your audio flashcards.

To get access credentials to use Amazon Polly, you will need to follow these steps:

  1. Create an AWS account if you don't already have one.
  2. Log in to the AWS Management Console.
  3. Navigate to the Amazon Polly console.
  4. Follow the prompts to create an IAM user with the necessary permissions to use Amazon Polly. During this process, you will create an access key and a secret access key for the IAM user.
  5. Save the access key and secret access key in a secure location, as you will need them to authenticate your API requests when using Amazon Polly. Once you have created an IAM user with the necessary permissions and have obtained an access key and secret access key, you can start using Amazon Polly to synthesize speech. You can use the AWS SDKs, AWS Command Line Interface, or make direct API requests to interact with Amazon Polly.

To create an IAM user with the necessary permissions to use Amazon Polly, you can follow these steps:

  1. Log in to the AWS Management Console.
  2. Navigate to the IAM console by using the search box and selecting IAM.
  3. Select "Users" from the left navigation menu.
  4. Click on the "Add user" button.
  5. Enter a name for the new IAM user.
  6. Create a new User Group with a customized name.
  7. Search for "AmazonPollyFullAccess" in the Permissions policies search box and select the policy.
  8. Click the "Create user group" button.
  9. Select the newly created user group.
  10. Click the "Next: Review" button.
  11. Review the settings for the new IAM user and click the "Create user" button.
  12. Go to the "Security credentials" tab of the newly created user.
  13. Scroll down and find the "Create access keys" button, and click it.
  14. Select "Command Line Interface (CLI)" and set a description tag, or skip this step.
  15. Click the "Create access key" button.
  16. On the final page, copy or download the new IAM user's access key ID and secret access key. Note that the secret access key will not be shown again.
  17. Enter the access key and secret access key in the app, separated by a comma (“Access key, Secret access”).
  18. You're all set to enjoy!