The sample demonstrates the basics of using the predefined short message and web search grammars with the speech recognition feature. When the app runs, you choose which predefined grammar to use by tapping one of the two buttons, accept the speech privacy policy that appears, and then speak a word or phrase. The speech recognizer uses the predefined grammar to look for a match, and speaks the result of the speech recognition attempt back to you.
Since the predefined grammars that Windows Phone supports are hosted on the network, you will need network access in order to run this sample.
This sample uses the Windows.Phone.Speech.Recognition APIs. 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.
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