ColorChooser: A Custom Application Speech Control
(Application Speech Control Sample)
This sample is included in the Speech Application SDK in order to illustrate the process behind designing a custom-made control and building the .dll for the control. For this reason, the sample is not compiled. Before a user can run this sample, the user must first build the sample using Visual Studio .NET 2003. Only developers using Visual Studio .NET 2003 can run this sample.
This sample illustrates the result of following the instructions in Creating A ColorChooser Application Speech Control. It is a custom-made Application Speech Control, derived from the ApplicationControl class in the Microsoft.Web.UI.SpeechControls.ApplicationControls namespace. The ApplicationControl class defines common properties that are useful when building an application control.
When the sample runs, it prompts the user to select a color. Saying help causes the application to list the colors that the user can select. The colors that the user can select are blue, red, green, and yellow. When the user selects a color, the application confirms the color choice.
Featured Highlights
- A custom-made Application Speech Control
Running the Sample
- In Windows Explorer, navigate to C:\Program Files\Microsoft Speech Application SDK 1.1\Applications, and double-click Samples.sln. The Samples solution file opens in Visual Studio.
- In the Build menu, select Rebuild Solution....
- In Solution Explorer, expand the ColorChooser subdirectory that is inside the Samples project.
- Right-click ChooseColor.aspx and select Set As Start page.
- Press F5. The sample opens and prompts the user to choose a color.
- Say help. The sample responds by listing the colors that the user can select.
- Say one of the color names that the application lists.