The document contains code snippets for integrating voice commands into a Windows Phone application using Cortana. It includes XML for defining voice commands with examples, feedback and navigation actions. It also includes code for installing the voice command definitions and handling activation from voice commands to navigate to the appropriate page in the app.
Working with Cortana is fun. This presentation is for people who are seasoned developer and want to learn more on integrating Cortana with Windows Phone Apps.
The document discusses integrating voice commands into Windows Phone applications. It provides XML code examples for defining voice command sets with commands to search or find content on MSDN based on dictated terms. The commands provide feedback and navigate to a main page. Voice commands were improved between Windows Phone 8.0 and 8.1, allowing more powerful and accurate natural language recognition.
The document describes the three main steps to integrate Cortana voice commands in a Windows Phone app:
1. Create an XML voice command definition file
2. Register the XML file on app startup
3. Handle voice command activation in the app's OnActivated override to navigate to the correct page based on the activated command
The document provides instructions for integrating Cortana voice commands into an app using 3 simple steps:
1. Create a voice command definition (VCD) XML file that defines the voice commands and their corresponding actions.
2. Register the VCD XML file on app startup so that Cortana recognizes the new commands.
3. Handle the voice command activation by getting the triggered command details from Cortana and executing the associated code.
Desarrollo de aplicaciones Windows Phone con Silverlight 8.1Javier Suárez Ruiz
This document discusses the differences between Windows Phone apps built with Silverlight and those built with the Windows Runtime (WinRT). It notes the timeline of Windows Phone platforms and how they used either Silverlight or WinRT. It also highlights some exclusive features of Silverlight apps and describes considerations for converting a Silverlight 8.0 app to Silverlight 8.1 or to the Windows Runtime.
Introducción al desarrollo de apps móviles multiplataforma con Xamarin.FormsJavier Suárez Ruiz
Este documento presenta una introducción al desarrollo de aplicaciones móviles multiplataforma nativas con Xamarin.Forms, permitiendo crear apps para iOS, Android, Mac y Windows desde Visual Studio usando C#. Xamarin.Forms facilita la creación de interfaces compartidas entre plataformas mediante controles nativos mapeados y comportamientos propios de cada sistema. El documento también explica conceptos como Portable Class Libraries, MVVM y el uso de Data Binding y Comandos con Xamarin.Forms.
Beyond Cortana & Siri: Using Speech Recognition & Speech Synthesis for the Ne...Nick Landry
Our society has a problem. Individuals are hooked on apps, phones, tablets and social networking. We created these devices and these apps that have become a core part of our lives but we stopped short. We failed to recognize some of the problematic situations where our apps are used. People are texting, emailing and chatting while driving. Pedestrians walk into busy intersections and into sidewalk hazards because they refuse to put their phone down. We cannot entirely blame them. We created a mobile revolution, and now we just can’t simply ask them to put it on hold when it’s not convenient. It’s almost an addiction and too often it has led to fatal results.
Furthermore, mobile applications are not always easy to work with due to the small screen and on-screen keyboard. Other people struggle to use traditional computing devices due to handicaps. Using our voice is a natural form of communication amongst humans. Ever since 2001: A Space Odyssey, we’ve been dreaming of computers who can converse with us like HAL9000 or the Star Trek computers. Or maybe you’re part of the new generation of geeks dreaming of Halo’s Cortana? Thanks to the new advances and SDKs for speech recognition and synthesis (aka text-to-speech), we are now several steps closer to this reality. Siri is not the end game, she’s the beginning.
This session explores the design models and development techniques you can use to add voice recognition to your mobile applications, including in-app commands, standard & custom grammars, and voice commands usable outside your app. We’ll also see how your apps can respond to the user via speech synthesis, opening-up a new world of hands-free scenarios. This reality is here, you’ll see actual live cross-platform demos with speech and you can now learn how to do it. Speech support is not just cool or a convenience, it should be a necessity in many apps.
This document provides code examples for adding and handling voice commands in Windows Phone apps. It shows how to install voice command sets from an XML file, navigate to different pages based on the recognized command, and access semantics from the recognition result to handle commands with parameters.
Working with Cortana is fun. This presentation is for people who are seasoned developer and want to learn more on integrating Cortana with Windows Phone Apps.
The document discusses integrating voice commands into Windows Phone applications. It provides XML code examples for defining voice command sets with commands to search or find content on MSDN based on dictated terms. The commands provide feedback and navigate to a main page. Voice commands were improved between Windows Phone 8.0 and 8.1, allowing more powerful and accurate natural language recognition.
The document describes the three main steps to integrate Cortana voice commands in a Windows Phone app:
1. Create an XML voice command definition file
2. Register the XML file on app startup
3. Handle voice command activation in the app's OnActivated override to navigate to the correct page based on the activated command
The document provides instructions for integrating Cortana voice commands into an app using 3 simple steps:
1. Create a voice command definition (VCD) XML file that defines the voice commands and their corresponding actions.
2. Register the VCD XML file on app startup so that Cortana recognizes the new commands.
3. Handle the voice command activation by getting the triggered command details from Cortana and executing the associated code.
Desarrollo de aplicaciones Windows Phone con Silverlight 8.1Javier Suárez Ruiz
This document discusses the differences between Windows Phone apps built with Silverlight and those built with the Windows Runtime (WinRT). It notes the timeline of Windows Phone platforms and how they used either Silverlight or WinRT. It also highlights some exclusive features of Silverlight apps and describes considerations for converting a Silverlight 8.0 app to Silverlight 8.1 or to the Windows Runtime.
Introducción al desarrollo de apps móviles multiplataforma con Xamarin.FormsJavier Suárez Ruiz
Este documento presenta una introducción al desarrollo de aplicaciones móviles multiplataforma nativas con Xamarin.Forms, permitiendo crear apps para iOS, Android, Mac y Windows desde Visual Studio usando C#. Xamarin.Forms facilita la creación de interfaces compartidas entre plataformas mediante controles nativos mapeados y comportamientos propios de cada sistema. El documento también explica conceptos como Portable Class Libraries, MVVM y el uso de Data Binding y Comandos con Xamarin.Forms.
Beyond Cortana & Siri: Using Speech Recognition & Speech Synthesis for the Ne...Nick Landry
Our society has a problem. Individuals are hooked on apps, phones, tablets and social networking. We created these devices and these apps that have become a core part of our lives but we stopped short. We failed to recognize some of the problematic situations where our apps are used. People are texting, emailing and chatting while driving. Pedestrians walk into busy intersections and into sidewalk hazards because they refuse to put their phone down. We cannot entirely blame them. We created a mobile revolution, and now we just can’t simply ask them to put it on hold when it’s not convenient. It’s almost an addiction and too often it has led to fatal results.
Furthermore, mobile applications are not always easy to work with due to the small screen and on-screen keyboard. Other people struggle to use traditional computing devices due to handicaps. Using our voice is a natural form of communication amongst humans. Ever since 2001: A Space Odyssey, we’ve been dreaming of computers who can converse with us like HAL9000 or the Star Trek computers. Or maybe you’re part of the new generation of geeks dreaming of Halo’s Cortana? Thanks to the new advances and SDKs for speech recognition and synthesis (aka text-to-speech), we are now several steps closer to this reality. Siri is not the end game, she’s the beginning.
This session explores the design models and development techniques you can use to add voice recognition to your mobile applications, including in-app commands, standard & custom grammars, and voice commands usable outside your app. We’ll also see how your apps can respond to the user via speech synthesis, opening-up a new world of hands-free scenarios. This reality is here, you’ll see actual live cross-platform demos with speech and you can now learn how to do it. Speech support is not just cool or a convenience, it should be a necessity in many apps.
This document provides code examples for adding and handling voice commands in Windows Phone apps. It shows how to install voice command sets from an XML file, navigate to different pages based on the recognized command, and access semantics from the recognition result to handle commands with parameters.
Fonctions vocales sous Windows Phone : intégrez votre application à Cortana !Microsoft
Cortana a pris des cours de français ! Elle est désormais disponible en version alpha sous Windows Phone. Profitez de ce lancement pour mettre à jour vos applications et les intégrer simplement à Cortana. Au programme : Cortana, les fonctions vocales (Commandes, Reconnaissance, Synthèse) et le contextual awareness. En bref, donnez la parole à vos applications !
The document discusses speech capabilities on Windows Phone 8, including speech synthesis and voice commands. Speech synthesis allows applications to speak text using the default voice or a selected language voice. Voice commands allow applications to be launched or controlled through spoken phrases defined in a voice command definition file. The file defines commands, example phrases, and which application pages to open in response to voice input.
Developing with Speech and Voice Recognition in Mobile AppsNick Landry
Can you hear me now? Move over Siri, here comes an army of speech-enabled mobile applications on Windows Phone. Mobile applications are not always easy to work with due to the small screen and small on-screen keyboard. Using our voice is a natural form of communication amongst humans, and ever since 2001: A Space Odyssey, we’ve been dreaming of computers who can converse with us like HAL9000. Or maybe you’re part of the new generation of geeks dreaming of Cortana? Thanks to the new Microsoft SDKs for voice recognition and speech synthesis (aka text-to-speech), we are now several steps closer to this reality. This session explores the development techniques you can use to add voice recognition to your Windows Phone applications, including in-app commands, standard & custom grammars, and voice commands usable outside your app. We’ll also see how your apps can respond to the user via speech synthesis, opening-up a new world of hands-free scenarios. This reality is here, you’ll see actual live demos with speech and you can now learn how to do it.
This document discusses speech capabilities for Windows Phone 8 applications, including:
1) Voice commands that allow users to trigger actions like navigation through spoken commands.
2) Speech recognition that enables natural interaction through grammar-based recognition of user speech.
3) Text-to-speech (TTS) that outputs synthesized speech to provide spoken instructions to users.
This document provides an overview of Selenium, an open source web application testing framework. It can run tests across different browsers and platforms. Selenium allows simulating user interactions like navigating web pages and making assertions to validate pages. Tests can be recorded using the Selenium IDE Firefox plugin and played back with assertions. A test suite is a HTML file containing links to individual test case files. The Selenium IDE test runner allows executing the test suite and controlling the test execution speed and log output.
Best Practices for Embedded UA - WritersUA 2012, Scott DeLoach, ClickStartScott DeLoach
1) The document provides best practices for writing embedded user assistance (UA) including using an informal friendly writing style, integrating content from other sources, allowing user feedback, customization, and learning.
2) It demonstrates HTML5 techniques for UA like adding subtitles to videos, editing content, and saving user-provided content using local storage.
3) Forms guidelines are discussed like requiring input, validating formats, and spellchecking. Examples of applications and websites using these techniques are provided.
Ui testing with splinter - Fri, 30 May 2014Taizo Ito
Splinter is an open source Python library for testing web applications. It allows controlling and interacting with popular web browsers to test functionality in a simple and intuitive way. Tests can be run across different browsers including Chrome, Firefox, PhantomJS, and remotely on services like Sauce Labs. Splinter provides APIs to visit URLs, fill forms, click elements and more through a consistent interface regardless of the target browser.
This document contains a slide deck presentation about eight tips and tricks for using PowerShell. The presentation covers remote control using WinRM and PSRemoting, parameter binding, splatting, tracing commands, suppressing errors, making reusable tools, comment-based help, and creating GUI apps. The presentation encourages attendees to download the slides and scripts from the Concentrated Technology website.
SELENIUM COURSE CONTENT:
Course Description
Within fast moving agile software development teams it becomes important to test user interfaces as they are being coded. Automated Testing techniques using Selenium 2 allow for test replay of important features as development progresses. Selenium IDE and Selenium Web Driver are important tools for any tester or developer to use in ensuring software quality and making changes with confidence. This interactive, hands-on workshop provides an understanding and advanced techniques in the use of Selenium 2 with hands on practice. The practice exercises are tailored to various skill levels and type of application being tested, from simple forms to complex web applications.
Objectives:
The class will teach participants to:
Understand trade-offs of automated vs. manual testing.
Record, edit and play back Selenium IDE tests against multiple types of web applications.
Minimize test failure due to normal changes to code.
Understanding of basic Selenium commands to get through common issue with web applications.
Use of Eclipse to run tests individually and as a group to generate test failure reports.
Learn how to help developers understand the importance of making applications more testable to improve usability.
SELENIUM COURSE CONTENT:
Course Description
Within fast moving agile software development teams it becomes important to test user interfaces as they are being coded. Automated Testing techniques using Selenium 2 allow for test replay of important features as development progresses. Selenium IDE and Selenium Web Driver are important tools for any tester or developer to use in ensuring software quality and making changes with confidence. This interactive, hands-on workshop provides an understanding and advanced techniques in the use of Selenium 2 with hands on practice. The practice exercises are tailored to various skill levels and type of application being tested, from simple forms to complex web applications.
Objectives:
The class will teach participants to:
Understand trade-offs of automated vs. manual testing.
Record, edit and play back Selenium IDE tests against multiple types of web applications.
Minimize test failure due to normal changes to code.
Understanding of basic Selenium commands to get through common issue with web applications.
Use of Eclipse to run tests individually and as a group to generate test failure reports.
Learn how to help developers understand the importance of making applications more testable to improve usability.
Topics:
Overview of automated testing
Selenium Suite Overview
Selenium 2 Limitations
Selenium IDE
HTML Locator strategy and false test failure
Firefox Firebug and reading HTML
Selenium Web Driver setup
Eclipse and JUnit (Don't Panic it's just code)
Convert Selenium IDE tests into Selenium 2 Java WebDriver tests
Working with unsupported commands from Selenium IDE
Dealing with security and certificates
Selenium Web Driver practice workshop
Learn how to test in multiple browsers and generate metrics and reports
Discussion of setting up Selenium Web Driver for continuous integration
Bonus Features:
Sample Selenium Web Driver code
Scripts to run JUnit test suites on multiple browsers and generate reports and metrics
List of web resources and blogs for reference
Laminated CSS selector cheat sheet
Laminated Selenium 2 command reference
Courses Offered in Our Training Institute:
1)Msbi
2)Dotnet
3)SharePoint 2010
4)Testing TOOLs - QTP, QC , Load Runner, Selenium
5)SQL SERVER
Visit for the course Details www.mindqonline.com
Mail us for details: online@mindqsystems.com
Call me at: +91-9502991277.
This document is a slide deck presentation about administering SharePoint 2010 with Windows PowerShell. The presentation introduces the SharePoint Management Shell and demonstrates common administrative tasks like managing permissions, sites, servers, and web applications using PowerShell cmdlets. It encourages attendees to think of tasks they want to automate and provides an overview of supported filters and limits for retrieving objects. The presentation concludes with a Q&A section and information on obtaining additional resources.
The document discusses various topics related to Spring Boot including Spring Data REST, CSRF protection, and Cloud Foundry integration. It provides code examples for exposing repositories as REST APIs with Spring Data REST, handling errors and exceptions, and securing applications with CSRF tokens. It also briefly mentions Spring Boot features like configuration properties and the Actuator.
KE User Group 2011 showcase: WordPress integrationPaul Trafford
The document discusses integrating a collection from the EMu database system into a WordPress website. Key points:
- The Museum of the History of Science installed WordPress and customized a theme to access their EMu collection through the EMu PHP API.
- This allows searching the collection and displaying search results on WordPress pages through shortcodes. It provides a consistent interface and closer integration between collections and other site content.
- While the integration was successful, it required significant coding and has some limitations. The museum plans to further develop functionality and also investigate alternatives like the IMu database system.
The document discusses the Android search framework and provides guidance on how to integrate search functionality into an Android application. Key points include:
- The search framework provides a customizable system-wide search dialog that applications can leverage instead of building their own search interfaces.
- Applications need to create a searchable configuration XML file, declare a searchable Activity, and implement searching and displaying results when a query is passed from the framework.
- Additional customizations like voice search, recent query suggestions, and passing context data are possible. Suggestions are implemented with a SearchRecentSuggestionsProvider content provider.
- The framework handles invoking the search dialog and passing the query to the application searchable Activity using Intents when
The document discusses the Android search framework and how applications can integrate with it. Key points:
- The search framework provides a customizable search dialog that applications do not have to build themselves. It handles passing search queries to applications.
- Applications need to create a searchable configuration XML, declare a searchable Activity, and implement searching and displaying results when a query is received.
- The search dialog can be invoked via the device search key or a button. Context data can be passed to refine searches.
- Voice search and recent query suggestions can be added. Suggestions require implementing a content provider to store and provide suggestion data.
This document discusses PowerShell remoting, including reusable sessions, interactive sessions, and running single commands remotely. It covers core remoting commands like New-PSSession and Invoke-Command. The document demonstrates creating reusable sessions to run multiple commands against machines, passing variables to remote hosts, and restricting the commands allowed in an interactive session for security. It provides resources for learning more about PowerShell remoting.
Siteocre Sxa and Solr - Sitecore User Group UAE Dubai- Jitendra SoniJitendra Soni
Presented two parts -
Part 1 -
Solr architectural view
Basic algorithm for search – How it works
Synonyms
Stop word
Protected word
Spell checker
Highlighter
Analyzers – How it works
Tokenizers – How it works
Filters - How it works
How to add custom filters and extending Solr core.
Part 2 -
Sitecore SXA Search - Overview
Understand OOTB options
Facet
Scope
Tokens
Boosting.
Hands-on session
Creating a search result page
view more option
sorting
Facet
Boosting and rule engine
Extending scope, facet and new custom tokens resolver.
Troubleshooting tips for search issues
Cape Town MS Developer User Group: Xamarin Community ToolkitJavier Suárez Ruiz
In this session we are going to talk about the Xamarin Community Toolkit, a collection of Animations, Behaviors, Converters Effects and Controls for mobile development with Xamarin.Forms.
We will see what it gives us, how to use it and also how you can contribute!
Fonctions vocales sous Windows Phone : intégrez votre application à Cortana !Microsoft
Cortana a pris des cours de français ! Elle est désormais disponible en version alpha sous Windows Phone. Profitez de ce lancement pour mettre à jour vos applications et les intégrer simplement à Cortana. Au programme : Cortana, les fonctions vocales (Commandes, Reconnaissance, Synthèse) et le contextual awareness. En bref, donnez la parole à vos applications !
The document discusses speech capabilities on Windows Phone 8, including speech synthesis and voice commands. Speech synthesis allows applications to speak text using the default voice or a selected language voice. Voice commands allow applications to be launched or controlled through spoken phrases defined in a voice command definition file. The file defines commands, example phrases, and which application pages to open in response to voice input.
Developing with Speech and Voice Recognition in Mobile AppsNick Landry
Can you hear me now? Move over Siri, here comes an army of speech-enabled mobile applications on Windows Phone. Mobile applications are not always easy to work with due to the small screen and small on-screen keyboard. Using our voice is a natural form of communication amongst humans, and ever since 2001: A Space Odyssey, we’ve been dreaming of computers who can converse with us like HAL9000. Or maybe you’re part of the new generation of geeks dreaming of Cortana? Thanks to the new Microsoft SDKs for voice recognition and speech synthesis (aka text-to-speech), we are now several steps closer to this reality. This session explores the development techniques you can use to add voice recognition to your Windows Phone applications, including in-app commands, standard & custom grammars, and voice commands usable outside your app. We’ll also see how your apps can respond to the user via speech synthesis, opening-up a new world of hands-free scenarios. This reality is here, you’ll see actual live demos with speech and you can now learn how to do it.
This document discusses speech capabilities for Windows Phone 8 applications, including:
1) Voice commands that allow users to trigger actions like navigation through spoken commands.
2) Speech recognition that enables natural interaction through grammar-based recognition of user speech.
3) Text-to-speech (TTS) that outputs synthesized speech to provide spoken instructions to users.
This document provides an overview of Selenium, an open source web application testing framework. It can run tests across different browsers and platforms. Selenium allows simulating user interactions like navigating web pages and making assertions to validate pages. Tests can be recorded using the Selenium IDE Firefox plugin and played back with assertions. A test suite is a HTML file containing links to individual test case files. The Selenium IDE test runner allows executing the test suite and controlling the test execution speed and log output.
Best Practices for Embedded UA - WritersUA 2012, Scott DeLoach, ClickStartScott DeLoach
1) The document provides best practices for writing embedded user assistance (UA) including using an informal friendly writing style, integrating content from other sources, allowing user feedback, customization, and learning.
2) It demonstrates HTML5 techniques for UA like adding subtitles to videos, editing content, and saving user-provided content using local storage.
3) Forms guidelines are discussed like requiring input, validating formats, and spellchecking. Examples of applications and websites using these techniques are provided.
Ui testing with splinter - Fri, 30 May 2014Taizo Ito
Splinter is an open source Python library for testing web applications. It allows controlling and interacting with popular web browsers to test functionality in a simple and intuitive way. Tests can be run across different browsers including Chrome, Firefox, PhantomJS, and remotely on services like Sauce Labs. Splinter provides APIs to visit URLs, fill forms, click elements and more through a consistent interface regardless of the target browser.
This document contains a slide deck presentation about eight tips and tricks for using PowerShell. The presentation covers remote control using WinRM and PSRemoting, parameter binding, splatting, tracing commands, suppressing errors, making reusable tools, comment-based help, and creating GUI apps. The presentation encourages attendees to download the slides and scripts from the Concentrated Technology website.
SELENIUM COURSE CONTENT:
Course Description
Within fast moving agile software development teams it becomes important to test user interfaces as they are being coded. Automated Testing techniques using Selenium 2 allow for test replay of important features as development progresses. Selenium IDE and Selenium Web Driver are important tools for any tester or developer to use in ensuring software quality and making changes with confidence. This interactive, hands-on workshop provides an understanding and advanced techniques in the use of Selenium 2 with hands on practice. The practice exercises are tailored to various skill levels and type of application being tested, from simple forms to complex web applications.
Objectives:
The class will teach participants to:
Understand trade-offs of automated vs. manual testing.
Record, edit and play back Selenium IDE tests against multiple types of web applications.
Minimize test failure due to normal changes to code.
Understanding of basic Selenium commands to get through common issue with web applications.
Use of Eclipse to run tests individually and as a group to generate test failure reports.
Learn how to help developers understand the importance of making applications more testable to improve usability.
SELENIUM COURSE CONTENT:
Course Description
Within fast moving agile software development teams it becomes important to test user interfaces as they are being coded. Automated Testing techniques using Selenium 2 allow for test replay of important features as development progresses. Selenium IDE and Selenium Web Driver are important tools for any tester or developer to use in ensuring software quality and making changes with confidence. This interactive, hands-on workshop provides an understanding and advanced techniques in the use of Selenium 2 with hands on practice. The practice exercises are tailored to various skill levels and type of application being tested, from simple forms to complex web applications.
Objectives:
The class will teach participants to:
Understand trade-offs of automated vs. manual testing.
Record, edit and play back Selenium IDE tests against multiple types of web applications.
Minimize test failure due to normal changes to code.
Understanding of basic Selenium commands to get through common issue with web applications.
Use of Eclipse to run tests individually and as a group to generate test failure reports.
Learn how to help developers understand the importance of making applications more testable to improve usability.
Topics:
Overview of automated testing
Selenium Suite Overview
Selenium 2 Limitations
Selenium IDE
HTML Locator strategy and false test failure
Firefox Firebug and reading HTML
Selenium Web Driver setup
Eclipse and JUnit (Don't Panic it's just code)
Convert Selenium IDE tests into Selenium 2 Java WebDriver tests
Working with unsupported commands from Selenium IDE
Dealing with security and certificates
Selenium Web Driver practice workshop
Learn how to test in multiple browsers and generate metrics and reports
Discussion of setting up Selenium Web Driver for continuous integration
Bonus Features:
Sample Selenium Web Driver code
Scripts to run JUnit test suites on multiple browsers and generate reports and metrics
List of web resources and blogs for reference
Laminated CSS selector cheat sheet
Laminated Selenium 2 command reference
Courses Offered in Our Training Institute:
1)Msbi
2)Dotnet
3)SharePoint 2010
4)Testing TOOLs - QTP, QC , Load Runner, Selenium
5)SQL SERVER
Visit for the course Details www.mindqonline.com
Mail us for details: online@mindqsystems.com
Call me at: +91-9502991277.
This document is a slide deck presentation about administering SharePoint 2010 with Windows PowerShell. The presentation introduces the SharePoint Management Shell and demonstrates common administrative tasks like managing permissions, sites, servers, and web applications using PowerShell cmdlets. It encourages attendees to think of tasks they want to automate and provides an overview of supported filters and limits for retrieving objects. The presentation concludes with a Q&A section and information on obtaining additional resources.
The document discusses various topics related to Spring Boot including Spring Data REST, CSRF protection, and Cloud Foundry integration. It provides code examples for exposing repositories as REST APIs with Spring Data REST, handling errors and exceptions, and securing applications with CSRF tokens. It also briefly mentions Spring Boot features like configuration properties and the Actuator.
KE User Group 2011 showcase: WordPress integrationPaul Trafford
The document discusses integrating a collection from the EMu database system into a WordPress website. Key points:
- The Museum of the History of Science installed WordPress and customized a theme to access their EMu collection through the EMu PHP API.
- This allows searching the collection and displaying search results on WordPress pages through shortcodes. It provides a consistent interface and closer integration between collections and other site content.
- While the integration was successful, it required significant coding and has some limitations. The museum plans to further develop functionality and also investigate alternatives like the IMu database system.
The document discusses the Android search framework and provides guidance on how to integrate search functionality into an Android application. Key points include:
- The search framework provides a customizable system-wide search dialog that applications can leverage instead of building their own search interfaces.
- Applications need to create a searchable configuration XML file, declare a searchable Activity, and implement searching and displaying results when a query is passed from the framework.
- Additional customizations like voice search, recent query suggestions, and passing context data are possible. Suggestions are implemented with a SearchRecentSuggestionsProvider content provider.
- The framework handles invoking the search dialog and passing the query to the application searchable Activity using Intents when
The document discusses the Android search framework and how applications can integrate with it. Key points:
- The search framework provides a customizable search dialog that applications do not have to build themselves. It handles passing search queries to applications.
- Applications need to create a searchable configuration XML, declare a searchable Activity, and implement searching and displaying results when a query is received.
- The search dialog can be invoked via the device search key or a button. Context data can be passed to refine searches.
- Voice search and recent query suggestions can be added. Suggestions require implementing a content provider to store and provide suggestion data.
This document discusses PowerShell remoting, including reusable sessions, interactive sessions, and running single commands remotely. It covers core remoting commands like New-PSSession and Invoke-Command. The document demonstrates creating reusable sessions to run multiple commands against machines, passing variables to remote hosts, and restricting the commands allowed in an interactive session for security. It provides resources for learning more about PowerShell remoting.
Siteocre Sxa and Solr - Sitecore User Group UAE Dubai- Jitendra SoniJitendra Soni
Presented two parts -
Part 1 -
Solr architectural view
Basic algorithm for search – How it works
Synonyms
Stop word
Protected word
Spell checker
Highlighter
Analyzers – How it works
Tokenizers – How it works
Filters - How it works
How to add custom filters and extending Solr core.
Part 2 -
Sitecore SXA Search - Overview
Understand OOTB options
Facet
Scope
Tokens
Boosting.
Hands-on session
Creating a search result page
view more option
sorting
Facet
Boosting and rule engine
Extending scope, facet and new custom tokens resolver.
Troubleshooting tips for search issues
Similar to Integrando nuestra Aplicación Windows Phone con Cortana (20)
Cape Town MS Developer User Group: Xamarin Community ToolkitJavier Suárez Ruiz
In this session we are going to talk about the Xamarin Community Toolkit, a collection of Animations, Behaviors, Converters Effects and Controls for mobile development with Xamarin.Forms.
We will see what it gives us, how to use it and also how you can contribute!
Tech Club Asturias: Un vistazo al presente y futuro de Xamarin.FormsJavier Suárez Ruiz
Xamarin.Forms es un framework de código abierto de Microsoft para crear aplicaciones multiplataforma para iOS, Android y Windows desde una base de código común en C#. .NET MAUI es la evolución de Xamarin.Forms que permitirá crear interfaces de usuario nativas para múltiples dispositivos desde un solo proyecto de código con acceso a las API nativas de cada plataforma.
Monkey Conf 2020: Xamarin Community Toolkit: More possibilities with Xamarin....Javier Suárez Ruiz
In this session we are going to know the Xamarin Community Toolkit (XCT) along with all the options it offers like controls, converters, behaviors, etc.
In this session we are going to see in depth the new .NET MAUI handlers, a comparison with the Xamarin.Forms renderers as well as other related aspects such as the possibilities when extending or customizing a handler, performance, etc.
Este documento presenta una introducción a la creación de controles personalizados en Xamarin.Forms. Explica cómo crear controles utilizando Custom Renderers, permitiendo personalizar la apariencia y comportamiento de controles existentes en cada plataforma. También explica cómo crear controles utilizando SkiaSharp, dibujando directamente en un canvas para obtener un alto rendimiento de forma multiplataforma. Finalmente, cubre aspectos como la creación de propiedades enlazables y el rendimiento al crear controles.
Este documento presenta las novedades y mejoras recientes en Xamarin.Forms y las herramientas de Xamarin. Entre las novedades se incluyen mejoras en las herramientas como Hot Reload y Hot Restart para reducir los tiempos de iteración, la introducción de Shell para simplificar la navegación, y nuevos controles como CarouselView y CollectionView. También se discuten las mejoras planificadas como soporte para GIFs, gradientes y nuevos controles.
Crear interfaces de usuario atractivas con Xamarin.FormsJavier Suárez Ruiz
This document discusses creating attractive interfaces with Xamarin.Forms. It covers current mobile app design trends, using resources and styles to customize themes, animations and transitions, using Lottie for simple animations, gradients as a current design trend, using the SkiaSharp graphics engine, new Xamarin.Forms controls, and third party libraries with common design templates. The document includes code examples and links to resources and the speaker's GitHub projects. It concludes with asking if there are any questions.
This document contains a summary of presentations for a Xamarin UI event in July. It lists over 30 presenters who will be sharing topics like creating banking apps, Uber clones, custom controls, animations, data entry, maps, and more using Xamarin Forms. The event will take place from July 1-31.
A la hora de desarrollar aplicaciones con Xamarin.Forms el rendimiento suele ser un factor a tener en cuenta. En Xamarin.Forms, ¿sabes el ciclo de vida de un Layout?, ¿qué opciones de Layout son más óptimas?, ¿cómo afectan los Bindings al rendimiento y como tratarlos?, ¿qué debemos hacer para optimizar el trabajo con imágenes?, ¿ListView o CollectionView?, ¿y qué ocurre con Shell? A estas y otras preguntas habituales de rendimiento daremos solución, con datos y pruebas en forma de sencillos consejos a tener en cuenta a la hora de desarrollar una aplicación con Xamarin.Forms.
Xamarin.Forms Shell introduce una nueva jerarquía para la organización de la interfaz de usuario de las aplicaciones móviles que maximiza la reutilización de código y facilita la creación de diseños consistentes entre plataformas. La nueva API de navegación basada en URLs mejora la experiencia de usuario y permite funcionalidades como deep linking. Además, Shell proporciona nuevas opciones de diseño visual para conseguir la misma apariencia en iOS y Android sin necesidad de código específico de plataforma.
El documento presenta las nuevas características y mejoras de .NET Core, incluyendo el soporte para Windows Desktop, IoT y AI en .NET Core 3, así como nuevas tecnologías como Blazor, ML.NET y Azure DevOps. También destaca el crecimiento continuo de la plataforma .NET y C# con más de un millón de nuevos desarrolladores .NET activos en el último año.
Analizando interfaces de usuario avanzadas con Xamarin.FormsJavier Suárez Ruiz
Este documento presenta las características avanzadas de interfaz de usuario que se pueden lograr con Xamarin.Forms, incluyendo interfaces compartidas entre plataformas, lógica de negocios compartida y renderizadores personalizados. También muestra varios ejemplos de aplicaciones como My Trip Countdown, Pulse Music y Netflix.
Este documento describe un taller sobre el desarrollo de aplicaciones móviles con Xamarin.Forms empleando Machine Learning. El taller mostrará cómo crear la estructura de un proyecto Xamarin, diseñar interfaces de usuario, acceder a código específico de plataforma, realizar peticiones HTTP y más. La aplicación que se construirá podrá tomar fotos y analizarlas con Custom Vision para identificar si contienen perros calientes. El taller resolverá dudas y proporcionará recursos adicionales.
Este documento presenta sobre Xamarin.Forms y sus nuevas características en Xamarin.Forms 3.0. Ahora se puede crear aplicaciones para nuevas plataformas como Linux (usando GTK#), WPF, y la web. También hay soporte para nuevos dispositivos como wearables y Internet de las Cosas. Con nuevas características como SkiaSharp, FlexLayout y VisualStateManager es posible crear aplicaciones con una interfaz más atractiva.
Este documento presenta las nuevas características de Xamarin.Forms 3.0, incluyendo FlexLayout, VisualStateManager, estilos con CSS, soporte para RTL y nuevas plataformas como Linux y WPF. FlexLayout permite diseños flexibles mediante propiedades como dirección, envuelto y alineación. VisualStateManager facilita la gestión de estados visuales. Los estilos CSS permiten aplicar estilos a elementos mediante selectores y propiedades. También se mejora el soporte para idiomas de derecha a izquierda y se añaden Linux y WPF como
El documento habla sobre el desarrollo de aplicaciones móviles con Xamarin. Explica que Xamarin permite crear aplicaciones nativas multiplataforma para iOS, Android y Windows. También menciona algunas herramientas de Xamarin como Xamarin Profiler e Inspector que ayudan a depurar y probar aplicaciones, y App Center que facilita el despliegue y gestión de las apps.
El documento presenta una introducción a Xamarin.Forms, un framework que permite desarrollar aplicaciones móviles multiplataforma compartiendo código C# entre iOS, Android y Windows. Xamarin.Forms incluye más de 40 controles y layouts preconstruidos, data binding bidireccional, navegación y animaciones. Permite escribir la interfaz de usuario una sola vez y ejecutarla en múltiples plataformas de forma nativa.
El documento introduce Xamarin, una plataforma que permite a los desarrolladores crear aplicaciones móviles nativas compartiendo código entre iOS, Android y Windows. Xamarin usa C# y Visual Studio para escribir una vez el código compartido y ejecutarlo en múltiples plataformas, dando acceso a las APIs nativas de cada sistema. El documento también describe las ventajas de Xamarin como la experiencia de desarrollo integrada en Visual Studio y la capacidad de compartir grandes porciones de código entre plataformas.
2. Microsoft MVP Windows Platform Development
• Blog: http://geeks.ms/blogs/jsuarez
• Email: javiersuarezruiz@hotmail.com
• Twitter: @jsuarezruiz
3.
4.
5.
6.
7.
8. <?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>
9. <?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>
<CommandPrefix>MSDN</CommandPrefix>
10. <?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>
<Example>How do I add Voice Commands to my application</Example>
11. <?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>
<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>
12. <?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>
<Example>Find Install Voice Command Sets</Example>
13. <?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>
<ListenFor>Search</ListenFor>
<ListenFor>Search for {dictatedSearchTerms}</ListenFor>
<ListenFor>Find</ListenFor>
<ListenFor>Find {dictatedSearchTerms}</ListenFor>
14. <?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>
<Feedback>Search on MSDN</Feedback>
15. <?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>
<Navigate Target="MainPage.xaml" />
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>
<PhraseTopic Label="dictatedVoiceCommandText" Scenario="Dictation">
<Subject>MSDN</Subject>
</PhraseTopic>
<PhraseTopic Label="dictatedSearchTerms" Scenario="Search">
<Subject>MSDN</Subject>
</PhraseTopic>
17.
18. <?xml version="1.0" encoding="utf-8"?>
<VoiceCommands xmlns="http://schemas.microsoft.com/voicecommands/1.0">
<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>
19. Windows Phone Silverlight Apps
private async void
// SHOULD BE PERFORMED UNDER TRY/CATCH
Uri new ms-appx:///vcd.xml UriKind.Absolute
await
Windows Runtime Apps
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);
22. // 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;
}
}
23. // 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;
}
}
// Windows Runtime App on Windows Phone 8.1, inside OnActivated override
// in App class
if (args.Kind == ActivationKind.VoiceCommand)
24. // 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;
}
}
VoiceCommandActivatedEventArgs vcArgs = (VoiceCommandActivatedEventArgs)args;
// What command launched the app?
string voiceCommandName = vcArgs.Result.RulePath.First();
// Navigate to right page for the voice command
switch (voiceCommandName)
25. // 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;
}
}
// Navigate to right page for the voice command
switch (voiceCommandName)
{
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;
}
26. // Windows Runtime App on Windows Phone 8.1, inside OnNavigatedTo in FindText.xaml.cs
protected override void OnNavigatedTo(NavigationEventArgs e)
{
// Get recognition result from parameter passed in frame.Navigate call
SpeechRecognitionResult vcResult = e.Parameter as SpeechRecognitionResult;
if (vcResult!=null)
{
// What did the user say? e.g. MSDN, "Find Windows Phone Voice Commands"
string recoText = vcResult.Text;
// Store the semantics dictionary for later use
IReadOnlyDictionary<string,IReadOnlyList<string>> semantics = vcResult.SemanticInterpretation.Properties;
string voiceCommandName = vcResult.RulePath.First();
if (voiceCommandName == "FindText")
{
// What did the user say, for named phrase topic or list "slots"? e.g. "Windows Phone Voice Commands"
if (semantics.ContainsKey("dictatedSearchTerms"))
{
HandleFindTextWithSearchTerms(semantics["dictatedSearchTerms"][0]);
}
else
{
HandleNoSearchTerms();
}
}
// Else handle other voice commands
} navigationHelper.OnNavigatedTo(e)
}
27. // Windows Runtime App on Windows Phone 8.1, inside OnNavigatedTo In FindText.xaml.cs
protected override void OnNavigatedTo(NavigationEventArgs e)
{
// Get recognition result from parameter passed in frame.Navigate call
SpeechRecognitionResult vcResult = e.Parameter as SpeechRecognitionResult;
if (vcResult!=null)
{
// What did the user say? e.g. MSDN, "Find Windows Phone Voice Commands"
string recoText = vcResult.Text;
// Store the semantics dictionary for later use
IReadOnlyDictionary<string,IReadOnlyList<string>> semantics = vcResult.SemanticInterpretation.Properties;
string voiceCommandName = vcResult.RulePath.First();
if (voiceCommandName == "FindText")
{
// What did the user say, for named phrase topic or list "slots"? e.g. "Windows Phone Voice Commands"
if (semantics.ContainsKey("dictatedSearchTerms"))
{
HandleFindTextWithSearchTerms(semantics["dictatedSearchTerms"][0]);
}
else
{
HandleNoSearchTerms();
}
}
// Else handle other voice commands
} navigationHelper.OnNavigatedTo(e)
}
// Windows Runtime App on Windows Phone 8.1, inside
// OnNavigatedTo in FindText.xaml.cs
protected override void OnNavigatedTo(NavigationEventArgs e)
{
// Get recognition result from parameter passed in frame.Navigate call
SpeechRecognitionResult vcResult = e.Parameter as SpeechRecognitionResult;
if (vcResult!=null)
{
// What did the user say? e.g. MSDN, "Find Windows Phone Voice Commands"
string recoText = vcResult.Text;
// Store the semantics dictionary for later use
IReadOnlyDictionary<string,IReadOnlyList<string>> semantics =
vcResult.SemanticInterpretation.Properties;
string voiceCommandName = vcResult.RulePath.First();
32. // Windows Phone Store App
// Recognition
private async Task<SpeechRecognitionResult> RecognizeSpeech()
{
SpeechRecognizer recognizer = new SpeechRecognizer();
// One of three Constraint types available
SpeechRecognitionTopicConstraint topicConstraint
= new SpeechRecognitionTopicConstraint(SpeechRecognitionScenario.WebSearch, "MSDN");
recognizer.Constraints.Add(topicConstraint);
await recognizer.CompileConstraintsAsync(); // Required
// Put up UI and recognize user's utterance
SpeechRecognitionResult result = await recognizer.RecognizeWithUIAsync();
return result;
}
// Calling code uses result.RecognitionResult.Text or
// result.RecognitionResult.SemanticInterpretation
33. SpeechRecognizer recognizer = new SpeechRecognizer();
// Windows Phone Store App
// One of three Constraint types available
SpeechRecognitionTopicConstraint topicConstraint
// Recognition
private async Task<SpeechRecognitionResult> RecognizeSpeech()
{
= new SpeechRecognitionTopicConstraint(
SpeechRecognitionScenario.WebSearch, "MSDN");
SpeechRecognizer recognizer = new SpeechRecognizer();
// One of three Constraint types available
SpeechRecognitionTopicConstraint topicConstraint
recognizer.Constraints.Add(topicConstraint);
= new SpeechRecognitionTopicConstraint(SpeechRecognitionScenario.WebSearch, "MSDN");
await recognizer.CompileConstraintsAsync(); // Requerido
recognizer.Constraints.Add(topicConstraint);
await recognizer.CompileConstraintsAsync(); // Required
// Put up UI and recognize user's utterance
SpeechRecognitionResult result = await recognizer.RecognizeWithUIAsync();
return result;
}
// Calling code uses result.RecognitionResult.Text or
// result.RecognitionResult.SemanticInterpretation
34. // Windows Phone Store App
// Put up UI and recognize user's utterance
SpeechRecognitionResult result
// Recognition
private async Task<SpeechRecognitionResult> RecognizeSpeech()
{
= await recognizer.RecognizeWithUIAsync();
SpeechRecognizer recognizer = new SpeechRecognizer();
return result;
// One of three Constraint types available
SpeechRecognitionTopicConstraint topicConstraint
}
// Calling code uses result.RecognitionResult.Text or
// result.RecognitionResult.SemanticInterpretation
= new SpeechRecognitionTopicConstraint(SpeechRecognitionScenario.WebSearch, "MSDN");
recognizer.Constraints.Add(topicConstraint);
await recognizer.CompileConstraintsAsync(); // Required
// Put up UI and recognize user's utterance
SpeechRecognitionResult result = await recognizer.RecognizeWithUIAsync();
return result;
}
// Calling code uses result.RecognitionResult.Text or
// result.RecognitionResult.SemanticInterpretation