# scripts-sound-recording
Repository to store tools and utils for sound recording purposes

## ddex-generator
Use this to generate SRR DDEX (v 3.8 or 4.3) for either tiktok or youtube. 
It will try to generate ddex and pop it in the `./output/` folder. 
You'll need some arguments. 
1. OSR_ID - The orchard sound recording id. 
2. OSR_VERSION - optionnal version id. *LATEST* is used if you miss this. 
3. DDEX_VERSION - 3.8 or 4.3
4. STORE - currently we support *tiktok* or *youtube*
5. DELIVERY_TYPE - choose between *METADATA_UPDATE*, *FULL_DELIVERY*, or *TAKEDOWN_DELIVERY*
6. ENVIRONMENT - chosse the environment to run against (WIP)
7. BUILD_NUMBER - set by Jenkins, use 'local' when running locally. 

### Running
run `awsume prod` 
run `aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 086679231553.dkr.ecr.us-east-1.amazonaws.com`
copy `.env.shadow` to `.env` and fill in the blanks. 
```docker compose run --rm --build dev```