- Create an account at https://aws.amazon.com/.
- Navigate to your account and search for Identity and Access Management (IAM).
- Proceed to Users and add a user. Fill in the user details.
- Add
AmazonPollyFullAccess
as Permission Policy and create your user group. - Continue clicking next until you have created the IAM user.
- Since I can't find programmatic access for user there. Open AWS CloudShell and type this command to generate API keys:
aws iam create-access-key --user-name YourUser
- Replace
YourUser
with the name of the user you created. Then run this command to grant the user full access:
aws iam attach-group-policy --group-name MyIamGroup --policy-arn arn:aws:iam::aws:policy/AdministratorAccess
- Replace
MyIamGroup
with the name of the user group.
- Copy and paste the access keys to awsCreds.json.
{
"accessKeyId": "YOUR_ACCESS_KEY",
"secretAccessKey": "YOUR_SECRET_ACCESS_KEY"
}
- Create and login to your OpenAI account.
- Go to https://platform.openai.com/account/api-keys.
- Create your API keys and copy them to your secure place.
- Your OpenAi API Key should start with
sk-.....
npm install
npm run watch
npm run dev
npm run build