x


How to obtain audio data?

I'm trying to record in a video images and sounds generated with unity. So far I have figured out how to get the video frames by rendering to a RenderTexture off-screen. However, it does not seem to be a similar mechanism for capturing audio data. I do not want to use external applications for recording, and I would prefer to record the audio data without actually using the speakers (say, I want to use an off-speaker buffer instead).

Therefore, I'm considering mixing the sounds myself. But then, I cannot find a way to obtain the sample data from AudioClips. Is there a way to do that?

more ▼

asked May 14 '10 at 03:26 PM

Facundo gravatar image

Facundo
276 8 10 17

(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

No. But it's planned for Unity 3.0.

more ▼

answered May 15 '10 at 08:40 AM

Sren Christiansen gravatar image

Sren Christiansen
254 1 7

(comments are locked)
10|3000 characters needed characters left

Sren, do you mean GetSpectrumData() and GetOutputData() in AudioListener? Or do you mean that 3.0 will also get sound recording (access to audio from microphone?)?

more ▼

answered Sep 16 '10 at 12:48 AM

David Plans gravatar image

David Plans
1

sorry, should have posted that as comment to Sren's post

Sep 16 '10 at 12:50 AM David Plans

yeah. No recording this time around. BTW You can use GetSpectrum.. and GetOutput... on each audio source as well

Sep 22 '10 at 08:02 AM Sren Christiansen
(comments are locked)
10|3000 characters needed characters left

Not without using external plugins like fmod.

more ▼

answered May 14 '10 at 04:12 PM

StephanK gravatar image

StephanK
6k 39 53 93

Ok, but that approach raises a new problem. How do you get the sound files out of the standalone application so fmod can read them?

May 14 '10 at 09:59 PM Facundo
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1029
x34

asked: May 14 '10 at 03:26 PM

Seen: 1695 times

Last Updated: May 14 '10 at 06:09 PM