Optimizes audio for web via gulp and ffmpeg
npm install
On macOS, ffmpeg is easiest installed with brew.
Install brew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then, install ffmpeg:
brew install ffmpeg --with-fdk-aac --with-tools --with-freetype --with-libass --with-libvorbis --with-libvpx --with-x265
Files with the .wav
extension in src/
are converted to either MP3 or Opus/WebM, depending on the command.
gulp mp3
gulp webm