From the course: Developing UWP Apps: 10 Voice, Speech, and Cortana

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Cortana logic flow

Cortana logic flow

- [Narrator] So, let's take a look at the basic Cortana logic flow. This is definitely an area that developers are a little bit unsure of how this process is handled. So, number one when we make a call to Cortana, Cortana checks to see if an app exists by the app name that we put in our command set definition. If that's not available, Cortana checks to see if the app exists by a command prefix that we put in our command definition. If not, then Cortana just processes out of the box commands. So if she doesn't understand anything, she may just go up and browse the web, for example. If she does find an instance of the app name or the command prefix, then she's going to go ahead and instantiate the app. And check to see if the app command set contains any verbiage that matches the voice command. If so, Cortana will then instantiate the app. And if available, Cortana will instantiate the app voice command service that's implemented as a background service. And then process app service…

Contents