The sample demonstrates the basics of the voice commands feature, which is a part of the speech feature for Windows Phone 8. The sample also demonstrates how to use the Alarm class. After the app launches, exit the app to the Start screen and tap and hold the Start button to view and accept the speech privacy policy. You can also accept the speech privacy policy by navigating to Settings > Speech on your phone and checking ‘Enable Speech Recognition Service’. You can then use voice commands to set an alarm, turn off the alarm, and so on. A full list of the available voice commands are in the voicecommands.xml file, which is located in the root folder of the app.
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.
Build the sample
-
Start Visual Studio Express 2012 for Windows Phone and select File > Open > Project/Solution.
-
Go to the directory in which you unzipped the sample. Double-click the Visual Studio Express 2012 for Windows Phone solution (.sln) file.
-
Use Build > Rebuild Solution to build the sample.
Run the sample
-
To debug the app and then run it, press F5 or use Debug > Start Debugging. To run the app without debugging, press Ctrl+F5 or use Debug > Start Without Debugging.
See also