It is not as simple as a one-to-one swap, but you can record in-game FMOD audio by implementing a DSP_READCALLBACK. We have a Unity DSP Capture example which should be a good starting point. You can copy the raw data from the inbuffer and save it to a file, and then play it back later by writing the saved data to the outbuffer.