Exporting the 'audio listener' to an external audio file?

So I’ve made a ‘nightmare/madness’ scene which is only needs to be audio-only and not playable. All I’ve done is surround the ‘audio listener’ with some audio sources and applied ‘steam audio’ for some spatialisation. Very simple.

I just want the audio from the ‘audio listener’ exported/recorded as a wav or mp3 file that I could use in a video. What’s the easiest way to do this?

Dear ml14, did you found a solution?

Hey! The simple way to do this would be to use a script on the main camera that accesses Audiolistener.GetOutputData and then records to a wav file.

This thread from 2012 solves the problem, but it was written in unity script which may still work but is depreciated. https://forum.unity.com/threads/writing-audiolistener-getoutputdata-to-wav-problem.119295/

There is also a GitHub that converts the general concepts to c# but did it with audio clips but you could modify it to with the original AudioListener.GetOutputData concept pretty easily. Unity3D: script to save an AudioClip as a .wav file. · GitHub

We do have an audio asset that also has this feature as a plug in play as well as many other audio processing features if you have trouble implementing the code that would be pretty easy to implement.