How to record audio ingame from different objects located in the scenario.

Hello everyone, I am working in something not related with videogames, and I needed to simulate a real room for audio processing. To do this I built two rooms connected and I also programmed all the objects the enviroment etc to include audio oclussion. But my main problem is that i need to place objects in the room which will operate as microphones to record the audio from different points inside of the two rooms, and meanwhile i will play audios from the player position and i want to get the records collected from each microphone placed in the room and save the audio in .wav or another file format.

Can you help me with this?

Thank you so much.