Voice Commands in Windows Phone 8 - Updating Phrase Lists at Run Time

In the previous post, I created a simple voice commands file and registered it with the WP OS. My command was “Find {huntTypes} Hunts”. huntTypes is a phrase list that was hardcoded in the VCD file with the following values: “New”, “Nearby” and “My”. This means the user can say “Play The Hunt, Find New Hunts”. I don’t really want to maintain this phrase list in the VCD file, instead I want to call a web service and get a list of types that my backend search can handle and update the phrase list. It’s very simple to update the phrase list, you simply need to get the command set that includes the phrase list you want to update and call UpdatePhraseListAsync.

private void AddToPhraseList(){ var vcs = VoiceCommandService.InstalledCommandSets["USEnglish"]; vcs.UpdatePhraseListAsync("huntTypes", new[] {"New", "Nearby", "My", "San Francisco", "New York"});}

Now when the user says “Play The Hunt, Find S... [More]

Integrating your app with the Windows Phone 8 Voice Commands

One of the new APIs in Windows Phone 8 is the Voice Commands API. This API allows you to integrate your own app with the main voice command functionality so when the phone’s start menu is held and the voice prompt comes up your app can be launched from it. How it works To add support for voice commands in your app you need to add a Voice Command Definition file to your project and register that file with the OS the first time your app launches. Once you do that, your app can be launched with the commands you defined. When a command is launched, the target page associated with that command will be opened directly (just like the search extensions work in WP7).To use this feature you need to add the following capabilities to your app (in the WMAppManifest.xml file)IDCAPSPEECHRECOGNITIONIDCAPMICROPHONEIDCAP_NETWORKING (like all speech recognition solutions, the actual processing is done on the server side, the phone just streams the audio to the server and gets the text resu... [More]

Is Microsoft learning from Apple?

In the last few years, Apple has passed Microsoft like a Formula 1 car passing a minivan on their way to becoming the largest tech company in the world. There are several factors that helped them get there. They realized the future is in smart mobile devices in consumer ends while everyone was still trying to sell them only to business users (that was obvious in the UI, hardware and cost of smartphones and tablets that existed before the iPhone came out) They didn’t play by the mobile industry rules. They didn’t bend to appease carriers demands. They make more money on each iPhone sold than Android/Windows Phone manufacturer make on their phones. A lot more. They did a great job at marketing their products. Every small feature was revolutionary, invented and patented by them. Even when it was far from the truth. They said it, the local news repeated it and even tech savvy people actually believe it. It’s hard to be surprised when a jury that heard that on TV or ... [More]

WP7 with Caliburn Micro - Securing screens - part 1

  This is going to be a series of posts about securing screens in a Windows Phone 7 Silverlight application. The Goal: Coming from .Net web applications, I was looking for a feature that will be similar to the authentication and authorization capabilities of Asp.Net with Forms Authentication. I want to be able to easily define a screen as secure and automatically show the login UI when needed without having extra code in each screen. If the entire app needs to be secured, I can just show a login screen as the first screen but when the user presses the back button from the home page I don’t want to go back to that screen. With MyMobilePortfolio, I used a popup for the login UI. the popup is opened from the home page of the app. In this solution I will take it one step further by having public and secure screens in the app. Caliburn Micro I’ve been using Caliburn Micro since I started developing WP7 apps and I love it. This framework is moving rapidly and some of t... [More]

My Mobile Portfolio – A Google Finance portfolio management app for Windows Phone 7

Just submitted this little app to the marketplace The WP7 version uses Caliburn Micro which made writing it very fast without too much unnecessary code. I’m also using RestSharp for REST calls to Google’s API, which made the client API classes very small. now I’m going to work on an Android version. so I’m looking for a good MVVM approach for that app as well(maybe Android Binding will do the trick). Here are some screenshots    Update:Here's a link to the website