This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
var storageFile = | |
await Windows.Storage.StorageFile | |
.GetFileFromApplicationUriAsync(new Uri("ms-appx:///vcd.xml")); | |
await Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager | |
.InstallCommandDefinitionsFromStorageFileAsync(storageFile); | |
Debug.WriteLine("VCD installed"); | |
} | |
catch | |
{ | |
Debug.WriteLine("VCD installation failed"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Original is here
https://digitalerr0r.wordpress.com/2015/10/21/voice-activating-your-windows-10-games-using-speech-synthesis-voice-recognition-and-cortana/