Skip to content

Amazon Polly Integration

Erik Bigler edited this page Dec 1, 2021 · 2 revisions

Amazon Polly

Amazon Polly is a high quality Text-to-Speech service that uses deep learning technologies to synthesize natural sounding human speech.

In order to use Polly, you must have an Amazon Web Services account in good standing. Please refer to this knowledge center article for instructions on how to sign up to AWS.

Creating IAM Credentials for Firebot

In order for Firebot to interact with AWS, you must create an IAM user.

  1. Open the Amazon Web Services (AWS) Console.

  2. From the Services menu, navigate to Security, Identity, & ComplianceIAM
    (Alternatively, you can also search for IAM in the provided search bar)

  3. In the left side menu, under Access Management, navigate to Users

  4. Click Add users

  5. Give your user a User name (like firebot) and under Access type, check only the Programmatic access checkbox.

  6. At the bottom of the screen, click Next: permissions

  7. Click Attach existing policies directly, and from the filtered list, find and check the policy called AmazonPollyReadOnlyAccess. Alternatively, you can also create new policy with the following policy document. These are minimum permissions required for the Amazon Polly integration to work.

    {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": [
            "polly:SynthesizeSpeech",
            "polly:DescribeVoices"
          ],
          "Resource": ["*"]
        }
      ]
    }
  8. At the bottom of the screen, click Next: Tags

  9. (Optional) Apply any tags you see fit, these are just for administrative purposes.

  10. At the bottom of the screen, click Next: Review. Make sure that the following is true:

    • User name: set to the name chosen in step 5.
    • AWS access type: Programmatic access - with an access key
    • Permissions summary: 1 Managed Policy - AmazonPollyReadOnlyAccess
  11. At the bottom of the screen, click Create user

  12. Take note of both the Access key ID and Secret access key displayed on this screen.

  13. In Firebot, navigate to SettingsIntegrationsAWS and paste the values from step 12 here.

  14. Enjoy! You can now use Polly TTS by adding the Text-To-Speech (Amazon Polly) effect (note that it's not the default tts effect) to whatever you like!

Clone this wiki locally