Package: attk
### Mac InstallationInstall Audio Tagging Toolkit using pip:```bashpip install git+git://github.com/hipstas/audio-tagging-toolkit.git```Next we will install **`ffmpeg`**, a command-line tool for audio and video encoding. First we will install several media codecs and command-line tools, then we will download ffmpeg's source code and compile it before installing. If you've previously installed ffmpeg using Homebrew, uninstall that copy before we begin:```bashbrew uninstall ffmpeg```Enter the following commands one at a time; note that the first and fourth lines are very long. After the last command you will be prompted to enter your password.```brew install automake fdk-aac git lame libass libtool libvorbis libvpx opus sdl shtool texi2html theora wget x264 xvid yasmgit clone http://source.ffmpeg.org/git/ffmpeg.git ffmpegcd ffmpeg./configure  --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvidmake && sudo make install```### Install Ubuntu dependencies:```bashapt-get update -y && apt-get upgrade -ysudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nosesudo apt-get -y install swigsudo apt-get -y install libpulse-devpip install -U pippip install virtualenv#Install FFmpeg with MP3 support (at your own risk):sudo add-apt-repository -y ppa:mc3man/trusty-mediasudo apt-get updatesudo apt-get -y dist-upgradesudo apt-get -y install ffmpeg```Now install Audio Tagging Toolkit using pip:```bashpip install git+git://github.com/hipstas/audio-tagging-toolkit.git```### Script examples via bash- Locate applause in single file, with non-applause segments labeled "Speaker Name" and a 2-second buffer on either side of each transition:```bashcd /path/to/audio-tagging-toolkitpython FindApplause.py -c -b 2 -l "Speaker Name" -i /path/to/audio.mp3```- Batch applause classification with CSV output, default 1-second buffer, and label for non-applause regions:```bashcd /path/to/audio-tagging-toolkitpython FindApplause.py -c -b -l "Speaker Name" /path/to/directory/```- Diarize a single file:```bashcd /path/to/audio-tagging-toolkitpython Diarize.py -b -c -i /Users/mclaugh/Desktop/attktest/Creeley-Robert_33_A-Note_Rockdrill-2.mp3```- Batch Diarize:```bashcd /path/to/audio-tagging-toolkitpython Diarize.py -b -c /Users/mclaugh/Desktop/attktest/```- Excerpt a class:```bashcd /Users/mclaugh/Dropbox/WGBH_ARLO_Project/audio-tagging-toolkit/for f in /Volumes/Turcich-2012/AAPB_Test_Haystack/*_king_gradientboosting.csv; dobase=$(basename """$f""" _king_gradientboosting.csv)python ExcerptClass.py -i """/Volumes/Turcich-2012/AAPB_Test_Haystack/$base.mp3""" -t """$f""" -e 0 -o "/Volumes/Turcich-2012/AAPB_excerpt_output/";donefor f in /Volumes/Turcich-2012/AAPB_Test_Haystack/*_king_gradientboosting.csv; dobase=$(basename """$f""" _king_gradientboosting.csv)python ExcerptClass.py -i """/Volumes/Turcich-2012/AAPB_Test_Haystack/$base.mp4""" -t """$f""" -e 0 -o "/Volumes/Turcich-2012/AAPB_excerpt_output/";done```- Excerpt from MP4s only:```bashcd /Users/mclaugh/Dropbox/WGBH_ARLO_Project/audio-tagging-toolkit/for f in /Volumes/Turcich-2012/AAPB_Test_Haystack/*.mp4; dobase=$(basename """$f""" .mp4)command="""python ExcerptClass.py -i "/Volumes/Turcich-2012/AAPB_Test_Haystack/$base.mp4" -t "/Volumes/Turcich-2012/AAPB_Test_Haystack/${base}_king_gradientboosting.csv" -e 0 -o "/Volumes/Turcich-2012/AAPB_excerpt_output/" """;echo $commandeval $command;done```- Launch QuickCheck script to rapidly review applause/speaker labels in Sonic Visualiser:```bashcd /path/to/audio-tagging-toolkitpython QuickCheck.py -a -v -i /path/to/audio/files```- QuickCheck diarization mode:```bashcd /path/to/audio-tagging-toolkitpython QuickCheck.py -d -v -i /path/to/audio/files```- Assign random tags:```bashpython RandomTags.py -s 3 -n 3 -e -i /path/to/example.mp3 -o /path/to/output_dir/```