Microphone.Start with an error

I’m Trying to use the Kinect sensor to record some voice.

Here is my code.

    public void StartRecording ()
        {
            if (_isRecording == false) {
                _Q9Clip = Microphone.Start (null, true, 999, 44100);
            }
        }
public void StopRecording ()
        {
            if (_isRecording == true) {
                Microphone.End ();
          }
}

Then,There is an error Popped-up in Unity 5


Starting Microphone failed. result=25 (Unsupported file or audio format. )
UnityEngine.Microphone:Start(String, Boolean, Int32, Int32)

However In Unity 4 are all correct.
Why is that?:frowning:

I changed it to 16000 or 37800 and it worked. Not sure why it’s not accepting 44100 without an error

1 Like

Hi. One question, what version ok kinect are you using? I’m using V2 but I can not get it work. I’m using Unity 5.5