SEC.aac.enc encoder to encode audio to a file. I get the audio input from the AudioRecord class.
stackoverflow.com