Can Cortana be used for voice commands in an application?

Can Cortana be used when the application is running in Windows Universal Apps? My use case is quite simple - I need to cope with a situation where the user says: β€œOpen report from {June 2015}”, where {June 2015} is a placeholder and can contain any date ... I know how to do this when the application is not It starts, and the application should start; but I'm not sure if this is possible to do when the application is running ...

+4
source share
1 answer

Yes, you can use Cortana when starting the application. The application will be activated regardless of its state, so it does not matter if your application is working or not, it will be activated in any case. This means that the OnActivated method (with VoiceCommand as ActivationKind ) will be called when the user calls your application using a voice command.

+2
source

Source: https://habr.com/ru/post/1624145/


All Articles