Пример #1
0
        public KinectSpeechService(ISensorService<KinectSensor> sensorService)
        {
            _sensorService = sensorService;

            IReadOnlyList<AudioBeam> audioBeamList = _sensorService.Sensor.AudioSource.AudioBeams;
            System.IO.Stream audioStream = audioBeamList[0].OpenInputStream();

            // create the convert stream
            _convertStream = new KinectAudioStream(audioStream);

            _ri = TryGetKinectRecognizer();
        }
Пример #2
0
        public KinectSpeechService(ISensorService <KinectSensor> sensorService)
        {
            _sensorService = sensorService;

            _speechSynthizer = new SpeechSynthesizer();

            IReadOnlyList <AudioBeam> audioBeamList = _sensorService.Sensor.AudioSource.AudioBeams;

            System.IO.Stream audioStream = audioBeamList[0].OpenInputStream();

            // create the convert stream
            _convertStream = new KinectAudioStream(audioStream);

            _ri = TryGetKinectRecognizer();
        }