Last active
August 1, 2023 21:09
-
-
Save brandonprry/6c86c244c4f73af5aacde26885605b4c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#export https_proxy=http://127.0.0.1:8081 | |
USER='' | |
PASS='' | |
KEY="bd516a32ff7db81c4a991acfc5656da3" #not secret | |
TALENT="967951" | |
VERSION="48" | |
rm /tmp/fdsa | |
date=$(date '+%Y-%m-%d') | |
mkdir -p $date/voices | |
mv auditions/*.wav auditions/*.m4a auditions/old | |
login_token=`curl -k -X $'POST' \ | |
-H $'Host: www.voices.com' -H $'Content-Type: application/x-www-form-urlencoded' -H $'Accept-Encoding: gzip, deflate' -H $"User-Agent: Voices/$VERSION CFNetwork/1126 Darwin/19.5.0" -H $'Connection: close' -H $'Accept: application/json' -H $'Accept-Language: en-us' -H $'Cache-Control: no-cache' \ | |
--data-urlencode "login=$USER" \ | |
--data-urlencode "password=$PASS" \ | |
--data-urlencode "action=member_login" \ | |
--data-urlencode "webservice_key=$KEY" \ | |
--data-urlencode "app_version=8.0.3" \ | |
--data-urlencode "app_platform=iOS" \ | |
--data-urlencode "login_token=null" \ | |
$'https://www.voices.com/webservice_v3/member' | tee /tmp/rewq |jq -r '.items[0] .login_token'` | |
n=1 | |
l=65 | |
for i in `curl -k -X $'POST' \ | |
-H $'Host: www.voices.com' -H $'Accept-Encoding: gzip, deflate' -H $"User-Agent: Voices/$VERSION CFNetwork/1126 Darwin/19.5.0" -H $'Connection: close' -H $'Accept: application/json' -H $'Accept-Language: en-us' -H $'postman-token: da431e09-3239-4c16-87a6-cd2f7284a8d7' -H $'Cache-Control: no-cache' -H $'Content-Type: application/x-www-form-urlencoded' \ | |
--data-binary $"action=job_get_jobs_for_talent&webservice_key=$KEY&talent_id=$TALENT&offset=0&limit=0&process_status=open&app_version=8.0.3&app_platform=iOS&login_token=$login_token" \ | |
$'https://www.voices.com/webservice_v3/job' | jq '.items .records | sort_by(.voicematch_score) |reverse[]| select(.voicematch_score>30) | .id'`; | |
do | |
curl -k -X $'POST' \ | |
-H $'Host: www.voices.com' -H $'Accept-Encoding: gzip, deflate' -H $"User-Agent: Voices/$VERSION CFNetwork/1126 Darwin/19.5.0" -H $'Connection: close' -H $'Accept: application/json' -H $'Accept-Language: en-us' -H $'postman-token: da431e09-3239-4c16-87a6-cd2f7284a8d7' -H $'Cache-Control: no-cache' -H $'Content-Type: application/x-www-form-urlencoded' \ | |
--data-binary $"action=job_get_by_id&webservice_key=$KEY&id=$i&app_version=8.0.3&app_platform=iOS&login_token=$login_token" \ | |
$'https://www.voices.com/webservice_v3/job' >> /tmp/fdsa | |
title=`jq -r '.items[0] .title' /tmp/fdsa | tr '/' '_' | tr '|' '_'` | |
price=`jq -r '.items[0] .budget' /tmp/fdsa |sed -e 's/\\$[0-9]* \\- \\$//' -e 's/\\$//' -e 's/,//'` | |
echo $price | |
echo `jq -r '.items[0] .budget' /tmp/fdsa` | |
id=`jq -r '.items[0] .id' /tmp/fdsa` | |
info=`jq -r '.items[0] .additional_info' /tmp/fdsa` | |
script=`jq -r '.items[0] .sample_script' /tmp/fdsa` | |
voicematch=`jq -r '.items[0] .voicematch_score' /tmp/fdsa` | |
file=`jq '.items[0] .job_script_file' /tmp/fdsa` | |
if [ "$file" != 'null' ] | |
then | |
wget --no-check-certificate "`jq -r '.items[0] .job_script_file .download_url' /tmp/fdsa`" -O "$date/voices/`jq -r '.items[0] .job_script_file .display_name' /tmp/fdsa |tr '/' '_'`" | |
fi | |
echo " ID: $id \n\n Title: $title \n\n Info: $info \n\n Script: ------------------------------\n\n $script \n\n See file: `jq -r '.items[0] .job_script_file .display_name' /tmp/fdsa`" > "$date/voices/`echo $l | awk '{printf("%c",$1)}'`-$voicematch-$id-$title.txt" | |
(( n+= 1)) | |
(( l+= 1)) | |
osascript add_track_to_logic.scpt "$id-$price-" | |
rm /tmp/fdsa | |
done | |
cd $date/voices/ | |
soffice --convert-to pdf *.pptx *.ppt *.docx *.dotx *.xlsx *.xls *.doc *.rtf *.txt | |
cd ~/auditions | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment