What format does the microphone record in?

What format is an audioClip created with the microphone in Unity 3.5?
mp3? ogg? something else?

How would I write the recording to a file?
Or is it already written as it records?

Thanks,

2 Answers

2

From: http://unity3d.com/support/documentation/ScriptReference/AudioClip.html

“An AudioClip stores the audio file either compressed as ogg vorbis or uncompressed”

How do you write the audio to a file after it's recorded?

There’s no format as such, it’s just data. As for saving, Writing a wav file in runtime - general guidance needed - Questions & Answers - Unity Discussions