- Setup an AWS S3 account if you haven't already done so.
- Create a bucket along with the following directory:
your_bucket_name/uploads
- run the following command in your terminal:
aws configure
- Enter the values below for the following prompts:
AWS Access Key ID: YOUR_ACCESS_KEY AWS Secret Access Key: YOUR_SECRET_KEY Default region name: us-west-1 Default output format: json
-
Go to your S3 console https://s3.console.aws.amazon.com/
-
Click on your bucket --> Permissions --> Bucket Policy
-
Enter the following code to make your bucket public to access uploaded audio files:
Note: Replace bucketname with your bucket name.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicRead",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::bucketname/*"
}
]
}
- Hit save.
pip3 install -r requirements.txt
python3 run.py
Copyright (c) 2020, John Nguy, Emmy Wong, Jeffrey Lau
Licensed under the MIT License.
