When you say "Hi Cortana", Cortana listens for a command. For example: Take a picture, or shut down or else.
I want to do this programaticaly in UWP (C#) . Execute a command like "Take a picture" or "Shut down" in UWP. (It doesnt matter if the user is asked weather they want that action to be taken, that is, I am not trying to bypass security or do something evil that the user doesnt want. )
I dont want to create a new capability, but just use existing ones. Preferably using a text string. For example: I want to shut down the device. I want to replicate the process: "hey cortana" "Shut Down" "Yes" that the user says. I want to create a function that does this
void ExecuteCommand(String command) {......}
And if I call ExecuteCommand ("shut down");
The device shuts down
Is this possible? If so, how can I do this?
windows.media.speechrecognition
namespace – Lennart Stoop