Homde
Homde

Reputation: 4286

Dictate note to Cortana with UWP app

I want to set up an app that integrates with Cortana exactly like OneNote does. Ie you tell Cortana "Take note", Cortana replies "What's your note", listens and parses the speech and then presents an Cortana interface with a link to the note, all using Cortana's own UI.

I've read a lot of the samples and tutorials, using a background service etc and some of these things are not hard, but most samples are oriented against structured voice commands and phrase lists. I can't seem to figure out how to do the "dictation" part in the Cortana UI. I could launch my app in the foreground and do it there but that would feel less seamless.

Is there some kind of special integration with OneNote or can you accomplish the same thing with a third-party app?

Upvotes: 0

Views: 134

Answers (1)

DevEnitly
DevEnitly

Reputation: 393

You need the following Code in your VoiceCommand.xml

<Command Name="naturalLanguage">
      <Example> listen to  what I have to say </Example>
      <ListenFor> listen {naturalLanguage} </ListenFor>
      <Feedback> You sad {naturalLanguage} </Feedback>
      <Navigate Target="VoiceCommandService"/>
</Command>
<PhraseTopic Label="naturalLanguage" Scenario="Natural Language">
      <Subject> Natural Language </Subject>
</PhraseTopic>

Upvotes: 1

Related Questions