Your SlideShare is downloading. ×
0
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
MS Champs meetup may 2014 on Cortana.
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

MS Champs meetup may 2014 on Cortana.

335

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
335
On Slideshare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Thanks all for voting #StopDengue
  • 2. We all know about Cortana She does •Call Hubby, mobile •Text Hubby hi sweety •Change my 3 pm appointment to 4 •Next time I’m at the Microsoft, remind me to meet Wela •Take note: left my car on level 4 •Wake up me in 20 minutes •Play Hariharan •Find cheap pizza restaurant near me •Do I need an umbrella
  • 3. “Take note: left my car on level 4” Where does the note go?
  • 4. Boooorrrrring !! Old stories ENOUGH!
  • 5. OK...! Lets HACK
  • 6. The <big>IDEA</big> Everyone knows Only hackers know
  • 7. Confusing?
  • 8. EXAMPLE scenario Me : Set colour to Red Cortana : Setting colour to Red [Win 8 & WP apps shows Red colour background] Me : Set colour to Blue Cortana : Settings colour to Blue [Win 8 & WP apps shows Red colour background]
  • 9. REAL LIFE scenario Me : Switch on bulb 1 Cortana : Switching bulb 1 on [One bulb in the room gets light] Me : Switch off bulb 1 Cortana : Switching bulb 1 off [One bulb in the room gets off from light] Me : Switch off bulb 1 Cortana : YAKO!! Its already off
  • 10. Real life IDEA
  • 11. Fly balloons with CORTANA
  • 12. Lets /build//
  • 13. /build// Voice Command
  • 14. Easy 3 steps
  • 15. Refer: http://channel9.msdn.com/Events/ Build/2014/2-530
  • 16. <?xml version="1.0" encoding="utf-8"?> <VoiceCommands xmlns="http://schemas.microsoft.com/voicecommands/1.1"> <CommandSet xml:lang="en-us" Name="englishCommands"> <CommandPrefix>MSDN</CommandPrefix> <Example>How do I add Voice Commands to my application</Example> <Command Name="FindText"> <Example>Find Install Voice Command Sets</Example> <ListenFor>Search</ListenFor> <ListenFor>Search for {dictatedSearchTerms}</ListenFor> <ListenFor>Find</ListenFor> <ListenFor>Find {dictatedSearchTerms}</ListenFor> <Feedback>Search on MSDN</Feedback> <Navigate Target="MainPage.xaml" /> </Command> <Command Name="nlpCommand"> <Example>How do I add Voice Commands to my application</Example> <ListenFor>{dictatedVoiceCommandText}</ListenFor> <Feedback>Starting MSDN...</Feedback> <Navigate Target="MainPage.xaml" /> </Command> <PhraseTopic Label="dictatedVoiceCommandText" Scenario="Dictation"> <Subject>MSDN</Subject> </PhraseTopic> <PhraseTopic Label="dictatedSearchTerms" Scenario="Search"> <Subject>MSDN</Subject> </PhraseTopic> </CommandSet> </VoiceCommands>
  • 17. private async void // SHOULD BE PERFORMED UNDER TRY/CATCH Uri new ms-appx:///vcd.xml UriKind.Absolute await // Please note that VoiceCommandService ends with WP8.1 (End of Silverlight era) // (ie) No more .xap’s after WP8.1. Only .appx’s Windows Phone Silverlight Apps on Windows Phone 8.1 Windows Runtime Apps on Windows Phone 8.1 private async void // SHOULD BE PERFORMED UNDER TRY/CATCH Uri uriVoiceCommands = new Uri("ms-appx:///vcd.xml", UriKind.Absolute); StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(uriVoiceCommands); await VoiceCommandManager.InstallCommandSetsFromStorageFileAsync(file); // No need to define Capabilities in app manifest
  • 18. // Windows Phone Silverlight App, in MainPage.xaml.cs protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) { base.OnNavigatedTo(e); if (e.NavigationMode == System.Windows.Navigation.NavigationMode.New) { string recoText = null; // What did the user say? e.g. MSDN, "Find Windows Phone Voice Commands" NavigationContext.QueryString.TryGetValue("reco", out recoText); string voiceCommandName = null; // Which command was recognized in the VCD.XML file? e.g. "FindText" NavigationContext.QueryString.TryGetValue("voiceCommandName", out voiceCommandName); string searchTerms = null; // What did the user say, for named phrase topic or list "slots"? e.g. "Windows Phone Voice Commands" NavigationContext.QueryString.TryGetValue("dictatedSearchTerms", out searchTerms); switch (voiceCommandName) // What command launched the app? { case "FindText": HandleFindText(searchTerms); break; case "nlpCommand": HandleNlpCommand(recoText); break; } } }
  • 19. // Windows Runtime App on Windows Phone 8.1, inside OnActivated override in App class if (args.Kind == ActivationKind.VoiceCommand) { VoiceCommandActivatedEventArgs vcArgs = (VoiceCommandActivatedEventArgs)args; string voiceCommandName = vcArgs.Result.RulePath.First(); // What command launched the app? switch (voiceCommandName) // Navigate to right page for the voice command { case "FindText": // User said "find" or "search" rootFrame.Navigate(typeof(MSDN.FindText), vcArgs.Result); break; case "nlpCommand": // User said something else rootFrame.Navigate(typeof(MSDN.NlpCommand), vcArgs.Result); break; } }
  • 20. /build// Bluetooth pairing
  • 21. Refer : http://blogs.msdn.com/b/flecoqui/archive/2013/1 2/13/windows-store-and-windows-phone-app- to-app-communication-over-bluetooth.aspx
  • 22. “Cortana, recharge mom’s mobile with 50 rupees”
  • 23. Good example Dialog eWallet
  • 24. eZ charging API - Charge the cost of digital goods eZ Cash API - transfer funds between two eZ Cash wallets and check the transaction history.
  • 25. http://1drv.ms/RucQqc
  • 26. http://1drv.ms/RucQqc

×