- Home /
Question by
WiLLyRS · Sep 10, 2012 at 09:18 AM ·
microphonewaveoggregistrationcompress
Compressing audio from Microphone.Start
Hi! I'm using microphone.start to register some audio from the users (about 30 seconds):
//Start registration
audio.clip = Microphone.Start(null, true, 10, 44100);
//Stop registration
float[] data=new float[audio.clip.samples * audio.clip.channels];
audio.clip.GetData(data,0);
audio.Play();
My problem is... I need to upload the registered audio somewhere but the filesize is waay too big for the upload from a device like a telephone, I was looking for some wave (because if I'm not wrong a float array like that is tecnically a wave file) to .ogg because of the high compression rate and because the license thing of mp3s. I've searched a lot but can't find anything usefull.. Do you guys have any hint? Thanks!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613080844im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How extract ogg from microphone? 0 Answers
compress recorded audio in an app? 0 Answers
I need help installing Unity 2.6 0 Answers
Add a wave to a Translate 2 Answers