Is there a way to capture the audio from Unity into a file?
Answer by ericksson
Nov 18, 2009 at 06:57 PM
The only existent method that Unity API is offering is this:
static function ExtractOggFile (obj : Object, path : string) : bool
Saves an AudioClip or MovieTexture to a file.
Will save an Ogg Vorbis or Ogg Theora file at the specified path.
I never used it though, and I never seen it being used before. I hope it helps you. If you want to capture all the sound that you can hear at a specific time in Unity (e.g. multiple sounds playing at the same time) to a single audio file, I don't think there's any method of doing that.
I actually was looking for a way to capture all the audio playing when the game is running, oh well. Thanks.
Answer by Design3.com
Nov 18, 2009 at 10:12 PM
If you're trying to capture what the sound card outputs as you play the game, you can use Audacity on a PC or Wiretap on a Mac (Wiretap is trial-to-buy).
For Audacity (PC):
For Wiretap (Mac):
Alternatively, on Mac OS 10.6 (Snow Leopard), you can use Quicktime X to do a screen capture and use an internal or external mic to record your speakers, though you'll get ambient room noise and computer hum as well.
NOTE: All these methods will record every sound your computer makes, so watch out for IM/Mail notifications and Mac volume adjustment blips.
Answer by Jessy
Nov 18, 2009 at 11:45 PM
You can use Soundflower (OS X, free) to route audio as you please. It's more complicated that Wiretap, because you need another app for recording, but it's free and has always worked perfectly for me.
I have never used Virtual Audio Cable, but it's apparently the Windows equivalent of Soundflower.
Also, Audacity runs on OS X, too, and would be an appropriate tool to use with either of these utilities, though it's redundant, given "What U Hear". Although I don't like Audacity, the tools I do like do not offer a simple "What U Hear" choice.
Answer by yoyo
Nov 25, 2010 at 05:27 PM
The fraps tool set captures audio and video from any running application, including a Unity game. It's very easy to set up and use.
Answer by miniklop
Jun 16, 2011 at 12:54 PM
for mac i can advise you Macvide ScreenCap (macvide.com/Macvide_screencap/), very easy and helpful progfor grabbing screen...
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
3 People are following this question.
The name 'Joystick' does not denote a valid type ('not found')
Can I call sounds from other script?
Making sounds wait for each other to finish
Footsteps Script for Running and Walking