I want to acquire by not default recording device.
I am sorry in incomprehensible English.
I use Unity 5.60f3.
Can a default device not use the recording device which I do not set in Unity?
Specifically, it is in condition to output a sound for the recording device that outside synthetic sound software is not the default device.
I acquire it in Microphone.Start and convert it into AudioSouce.
I am going to perform lip-sync of the character that I made in Live2D based on AudioSouce in real time.
void Start () { var audio = GetComponent();
audio.clip = Microphone.Start(null, true, 10, 44100),
while (Microphone.GetPosition(null) 0 <=) {}
audio.Play();
}
}
I was able to arrive to the one step this side of the movement to demand in such a script.
But Unity freezes when I appoint the thing except an default device in an object of Microphone.Start in this state.
I can acquire the sound that I output by synthetic sound software if I destroy all the remaining devices as AudioSouce after having made only the device which synthetic sound software outputs it effectively.
But the Microphone with the headset is in condition not to be able to destroy the device unexpectedness that synthetic sound software outputs at the same time because I record it.
I must let a sound for lip-sync become independent. The output of the synthetic sound has to output it near the device which is not an default device to the last.
Should I think about a totally different hand?