The built-in Game Recorder object should already support this. If you specify an audio format when starting a recording, it records the Audio plugin's output if it's in the project. If you have used UserMedia to request microphone input and routed that to an Audio tag, it will come out the Audio output too.