iOS : Record screen with audio

Hi, I am developing an iOS application which required to swapped faces live.
I also need to record video with current screen capture and audio.

I am able to record (capture) screen using ofxiOSVideoWriter. But I need to record audio from Microphone.
Can any one suggest how can I achieve this?

Thanks in advance.