// ------------------------------------------ // AUDIO // ------------------------------------------ private void StartAudioStream() { IReadOnlyList <AudioBeam> audioBeamList = Sensor.AudioSource.AudioBeams; var beam = audioBeamList[0]; var stream = beam.OpenInputStream(); var audio = new KinectAudioStream(stream); double confidence = ConfigManager.GetInstance().Find("kinect_v2.speech.confidence", 0.6); // Let the convertStream know speech is going active audio.SpeechActive = true; // Build Speech Engine AddOnManager.GetInstance().AddAudioSource(Name, audio, "Kinect", null, confidence); }
// ------------------------------------------ // AUDIO // ------------------------------------------ private void StartAudioStream() { IReadOnlyList<AudioBeam> audioBeamList = Sensor.AudioSource.AudioBeams; var beam = audioBeamList[0]; var stream = beam.OpenInputStream(); var audio = new KinectAudioStream(stream); double confidence = ConfigManager.GetInstance().Find("kinect_v2.speech.confidence", 0.6); // Let the convertStream know speech is going active audio.SpeechActive = true; // Build Speech Engine AddOnManager.GetInstance().AddAudioSource(Name, audio, "Kinect", null, confidence); }