- Home /
 
               Question by 
               kittureddy425 · May 02, 2013 at 10:44 PM · 
                c#audiorecording  
              
 
              How to Save Audio Clip through Script in unity3d?
Need To Save Audio Clip through using Script in C# Unity3D.I Don't Have Any Idea to in this saving file Could you plz help me...my below code.
  using UnityEngine;
   using System.Collections;
   public class RecordVoice : MonoBehaviour 
   {
 
 AudioClip sound;
 string dname;
 
    void Record()
 {
     foreach(string device in Microphone.devices)
     {
         dname=device;
     }
     sound=Microphone.Start(dname,true,10, 44100);
      //print(Microphone.IsRecording(dname));
     
     UILabel name=GameObject.Find("Label").GetComponent();
     name.text="Recording in progress...";
     
 }
 
 void Stop()
 {
     Microphone.End(null);
     
     
 }
 
 //To Do Play Button
 void Play()
 {
     audio.clip=sound;
     audio.Play();
 }
 }
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                