> For the complete documentation index, see [llms.txt](https://gitbook.bergelsonlab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.bergelsonlab.com/archive/duke-archive/zooniverse.md).

# Talker Variability Zooniverse

Steps to prep and upload tokens for ADS/CDS coding on Zooniverse

1. Rename files to be word\_annotid.wav and put them in a word-specific folder in `Fas-Phyc-PEB-Lab/Talker_variability/ADS_CDS_Coding` (e.g. Zoonivese\_ball)
2. Make a image for the video files
   1. Open Word and write the target word for your files (e.g. ball) in a large font (72) and take a screenshot. Rename the file word\_picture.png and put that in the word-specific folder named above
3. Run the script found here: `Fas-Phyc-PEB-Lab/Talker_variability⁩/⁨ADS_CDS_Coding⁩/⁨TerminalScript⁩/federica_loop.sh.` This will make videos for each of the wav files
4. Run the following from the terminal, changing \<videos folder> and \<user>. This uploads all the
   1. rsync --chmod=ug+rw,o+r --progress -rivz \<videos\_folder> \<user>@blab.vm.duke.edu:/var/www/blab.vm.duke.edu/zooniverse/
5. Run the following from the terminal, changing the \<manifest.csv> (e.g. water\_manifest.csv). This creates a file that has the names and urls of all of the files to be uploaded as a subject set
   1. site='<https://blab.vm.duke.edu/zooniverse/>'; echo 'url,filename' > \<manifest\_csv>; for f in Fas-Phyc-PEB-Lab/Talker\_variability/ADS\_CDS\_Coding/Zooniverse\_water/\*.wav; do name="$(basename -s'.wav' $f)"; echo $site$name; echo "$site$name.mp4,$name" >> \<manifest.csv>; done
   2. To upload just videos, and not the wav files, this is the correct chunk to run (changing the manifest name):
      1. site='<https://blab.vm.duke.edu/zooniverse/>'; echo 'url,filename' > morethan1.csv; for f in Fas-Phyc-PEB-Lab/Talker\_variability/ADS\_CDS\_Coding/Zooniverse\_morethan1\_7.6.21/\*.mp4; do name="$(basename -s'.mp4' $f)"; echo $site$name; echo "$site$name.mp4,$name" >> morethan1.csv; done
6. Create a new subject set in Zooniverse
7. Run this in the command line, changing the 5 letter sequence to the one for the subject set you just created, and the \<manifest.csv>. This uploads the manifest to Zooniverse
   1. panoptes subject-set upload-subjects ##### -r 1 -m video/mp4 \<manifest.csv>
