![]() Implementing the headless invocation APIs for Cortana to acknowledge the invocation, handle cancellation, and completion of the headless invocation to maintain the contract with Cortana, and avoid being terminated.Handling App::OnActivation() being called with details of a voice command (:OnActivation()). ![]() (TripViewModel.cpp:UpdateDestinationPhraseList()) Updating a phrase list within a VCD file at runtime.(adventureworkscommands.xml, :OnLaunched() ) Infix/Suffix Voice Command support, allowing for more natural phrases to be used.Implements progress screens, ensuring that Cortana does not time out during lengthy I/O operations (AdventureWorksVoiceCommandService.cs:ShowProgressScreen()).Implements a confirmation dialog in Cortana, ensuring a user can review a destructive action that will be taken (AdventureWorksVoiceCommandService.cs:SendCompletionMessageForCancellation()).(AdventureWorksVoicecommandService.cs:DisambiguateTrips()) Implements disambiguation, providing a user with multiple choices, which can either be chosen via voice, or other input mechanisms.(AdventureWorksVoiceCommandService.cs:SendCompletionMessageForDestination()) Providing various responses to Cortana, which Cortana will display within its own UI, including text, images, app activation URIs, etc.(AdventureWorksVoiceCommandService.cs:Run()) (Package.appxmanifest, AdventureWorksCommands.xml) Handling registration of a background task and hooking it up to a voice command.Handling App.OnActivation() being called with details of a voice command.(TripViewModel.cs:UpdateDestinationPhraseList()) (AdventureWorksCommands.xml, :OnLaunched() ) ![]() The samples collection, and GitHub, see Get the UWP samples from GitHub.įor more samples, see the Samples portal on the Windows Dev Center. For more info on working with the ZIP file, Sure to unzip everything to access shared dependencies. Or you can download the entire collection as a single You can download this sample as a standalone ZIP file Note: This sample is part of a large collection of UWP feature samples. ![]() Shows how to integrate with Cortana by providing Voice Command Definitions (VCDs) that allow an app to be invoked in a variety of ways. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |