July 2017
Beginner to intermediate
390 pages
10h 53m
English
As usual, begin a new Holographic project in Visual Studio. I called mine SpeechRecognitionSample. We will begin our VoiceRecognizer class with some standard code and place it next to the SpinningCubeRenderer in the Content folder and namespace. This is what it looks like:
using System; using System.Collections.Generic; using System.Threading.Tasks; using Windows.Media.SpeechRecognition; namespace SpeechRecognitionSample.Content { internal class VoiceRecognizer : IDisposable { private readonly Dictionary<string, Action> _actions = new Dictionary<string, Action>(); private SpeechRecognizer _speechRecognizer; public void Dispose() { GC.SuppressFinalize(this); Dispose(true); } protected void Dispose(bool isDisposing) ...Read now
Unlock full access