我正在使用 winmm.dll 使用以下方法从 kinect 录制音频:
[DllImport("winmm.dll", EntryPoint = "mciSendStringA", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
private static extern int record(string lpstrCommand, string lpstrReturnString, int uReturnLength, int hwndCallback);
目前,我正在使用停止按钮单击停止录制,但我想在检测静音时停止录制。因为我想删除“停止录制”按钮并在用户 10 秒内不说话时停止录制。