一、录制语音
Unity自带Api
public RecognizeVoice() { string[] microPhoneName = Microphone.devices; if(microPhoneName.Length > 0) { _microphone = microPhoneName[0]; } gotsamples = 0; } public void StartRecognize() { _audioclip = Microphone.Start(_microphone, true, time, frequency); } public RecognizeVoice() { string[