No, you're not crazy, you're just talking to your Windows Phone 8 app (and this sample shows you how)
- Posted: Dec 03, 2012 at 6:00 AM
- 6,070 Views
Today's Mobile Monday project is a Windows Phone 8 SDK Sample project that shows off something I've not seen highlighted too often, how you can build in voice and speech into your Windows Phone 8 app's.
This sample demonstrates how to manage an alarm by using voice commands.
This sample uses the Windows.Phone.Speech.VoiceCommands Windows Phone Runtime API. For more info about the speech feature in Windows Phone 8, see Speech for Windows Phone 8.
When you grab the sample and play with it in the Emulator, you long press/click the Start button (the Windows logo on the bottom of the phone, in the middle), accept the speech recognition warning, say the application, "Alarm Clock" and then the commands, "Turn alarm on", "Turn alarm off" or "Set alarm for [time]". Being the guy I am, I wasn't saying the application first. No wonder the phone had no clue what I was actually trying to tell it what to do...
Not having done any speech recognition app's for Windows Phone 8 before (or any Windows Phone version for that matter), what I really liked was how all the voice commands being listened for were all in one place, in an easily readable layout, in the voicecommands.xml
The app load's, loads the XML and then setups up an async listening command.
When a command comes in, it branches based on the command and also shows how easy it is to respond back with speech.
In short, this shows off just how easy it is to add speech recognition and voice to your app's...