Just want to let people know that we can modify the Cordova plugin to record audio directly in M4A format.
Here is the link:
Good luck!