To setup TTS with you Amazon account we need the following:


1. access key and secret key of an API user, who has both the rights to use Polly and can carry out the necessary operations on S3


Example Polly (or use simple AmazonPollyFullAccess):

{

    "Version": "2012-10-17",

    "Statement": [

        {

            "Effect": "Allow",

            "Action": [

                "polly:*"

            ],

            "Resource": [

                "*"

            ]

        }

    ]

}


Example S3:


{

    "Version": "2012-10-17",

    "Statement": [

        {

            "Effect": "Allow",

            "Action": [

                "s3:ListBucket"

                "s3:PutObject."

                "s3:PutObjectAcl"

                "s3:GetObjectAcl"

                "s3:GetObject"

            ],

            "Resource": [

                "arn:aws:s3:::<bucket-name>/*"

            ]

        }

    ]

}


2. bucket name, bucket region and the prefix (path in the bucket) under which the files are to be stored and which allows public access