Share via


ColorChooser: A Custom Application Speech Control

  Microsoft Speech Technologies Homepage

(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.

  • A custom-made Application Speech Control

Running the Sample

  1. 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.
  2. In the Build menu, select Rebuild Solution....
  3. In Solution Explorer, expand the ColorChooser subdirectory that is inside the Samples project.
  4. Right-click ChooseColor.aspx and select Set As Start page.
  5. Press F5. The sample opens and prompts the user to choose a color.
  6. Say help. The sample responds by listing the colors that the user can select.
  7. Say one of the color names that the application lists.

See Also

ApplicationControl Class | Application Speech Controls

Creating A ColorChooser Application Speech Control