Recording Audio

Hi, I’m looking for a way to record audio withing Unity and play it back. I saw Prime31’s audio recorder plugin, but that looks like it records audio from the microphone. I’m looking to record the audio that is being produced withing Unity, actually just one particular Audio Source in Unity.

Are there any plugins that do this or is it easy to accomplish?

Thanks

John

bump

Hey Jingato,
Did you even find a way to do this? I’m looking for the same thing.
Pete

http://docs.unity3d.com/Documentation/ScriptReference/Microphone.html

Since 3.5, no plugins needed.

3.5 also introduced AudioClip.GetData and SetData methods, as well as audio bufer access through OnAudioFilterRead()

I suggest you read the docs on these (spars, alas), and then posts by users about them.

Enjoy,

Gregzo

Oups, sorry, misread your question. The answer is even simpler : just use my script, the thread is here :
http://forum.unity3d.com/threads/119295-Writing-AudioListener.GetOutputData-to-wav-problem

It’s free to use!

Enjoy again,

Gregzo

Hey Gregzo,
Thanks, that’s perfect!

Happy to help! If you’re doing anything more complex than simply playing back clips in Unity, do check out my audio bugs thread. It might save you hours of frustration…