Updated the build script.

Added the audio encoding functionality.