# acr-asset-fingerprinter

## Additional Setup

### ACRCloud

To send actual fingerprints for de-duplication, you will need to have credentials for [ACRCloud](https://www.acrcloud.com/).

If you don't have access to the ACRCloud Console in **dev**, request via [DevOps Ticket](https://jira.theorchard.com/projects/SYS/issues/) or ask a team member to create one for you 

1. ```$ cp .env.shadow .env```
2. Go to [ACRCloud Console IAM Login](https://console-v2.acrcloud.com/#/iam-login)
	3. Login using `it+dev@theorchard.com` and credentials you have previously been given.
	4. Navigate to [developer settings](https://console-v2.acrcloud.com/account#/developer)
	5. Click "Create Token"
	6. Select all options under "audios"
	7. Click "Create"
	8. Copy JWT
9. Insert into `.env` for `acr_cloud_access_token`

 
### AWS S3

Using the default `docker-compose.yaml` setup, credentials will be copied into the function container from `~/.aws/credentials` on your host machine and the environment variable `AWS_PROFILE=dev` will be set

### Test Assets

* Download ACRCloud [test assets](https://docs.acrcloud.com/tutorials/recognize-custom-content-offline) to use locally
* In AWS-**dev** look in S3 bucket `dev-orcd-raw-assets` and key `fingerprinting/acrcloud/my_song_1.mp3`
