Created
July 2, 2016 06:49
-
-
Save flushpot1125/a2670e42df7bed99ef7069a91f2bf566 to your computer and use it in GitHub Desktop.
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/