Running the Speech Application SDK Samples
Run the sample applications included in the Microsoft Speech Application SDK (SASDK) directly from the "Speech Application Selector Page," or open, compile, and run the samples using Microsoft Visual Studio .NET 2003. Before running the samples for the first time, verify that:
- Microsoft Internet Information Services (IIS) is installed and running
- Telephony Application Simulator is installed
- Speech Add-in for Microsoft Internet Explorer is installed and working properly
Verifying Proper Setup Before Running the SASDK
This section describes how to verify that IIS, Telephony Application Simulator, and Speech Add-in for Microsoft Internet Explorer are properly installed.
To verify that the required IIS services are running
- Click Start, and then click Run.
- Type cmd and press ENTER. The Command Prompt opens.
- In the Command Prompt, type iisreset /status and press ENTER.
If the following line appears, then IIS and World Wide Web Publishing Services are installed and running:
"Status for World Wide Web Publishing ( W3SVC ) : Running"
For more information on how to install and run IIS, see the operating system help documentation.
To verify that Telephony Application Simulator is installed
- Click Start, select All Programs, select Microsoft Speech Application SDK Version 1.1, and then select Debugging Tools.
- Verify that Telephony Application Simulator is listed in the final context menu that appears when Debugging Tools is selected.
To verify that Speech Add-in for Microsoft Internet Explorer is installed and working properly
- Click Start, and then click Run.
- Type C:\Program Files\Microsoft Speech Application SDK 1.1\Client\Docs\SpeechAdd-inStartPage.htm and press ENTER. The Start page opens.
- Follow the instructions on that page to test both speech input and speech output.
Running the SASDK Samples from the Speech Application Selector Page
This section describes how to run the SASDK sample applications from the "Speech Application Selector Page."
To run samples directly from the "Speech Application Selector Page"
- In a Web browser window, open C:\Program Files\Microsoft Speech Application SDK 1.1\Applications\Applications.htm
- Click the link labeled "Open Telephony Application Simulator for Applications." A Telephony Application Simulator console and Speech Debugging Console open.
- In the Destination textbox of the Telephony Application Simulator console, type the number of the sample to be run, and click Dial.
Remarks
- The number associated with each sample is listed to the left of the sample name in the SASDK Sample Applications section of the "Speech Application Selector Page."
- After clicking the link labeled "Open Telephony Application Simulator for Applications," depending on Internet Explorer security settings, a security message may appear asking whether to allow an ActiveX control interaction with the page. If this message appears, click Yes to allow the ActiveX control to open the simulator.
- Depending on the processor speed and memory of the computer, the Telephony Application Simulator console and Speech Debugging Console can take up to several minutes to fully load. The Telephony Application Simulator console is ready when the Dial button is enabled.
Opening, Compiling, and Running Voice-only Samples in Visual Studio .NET 2003
This section describes how to use Visual Studio .NET 2003 to open, compile, and run the voice-only sample applications included in the SASDK. All of the samples in the SASDK are voice-only samples, with the exception of the tap-and-talk sample.
To open, compile, and run a voice-only sample within the Visual Studio .NET 2003 environment
- Go to the SASDK applications directory located at:
- C:\Program Files\Microsoft Speech Application SDK 1.1\Applications\
- Double-click Samples.sln.
- In the Visual Studio .NET 2003 Solution Explorer, right-click the Samples project file.
- From the pop-up menu, select Properties to open the Samples Property Pages window.
- Select Configuration Properties, and then select Debugging.
- In the drop-down menu next to Debug Mode, select Project, and then click Apply.
- In the right pane under Start Options, set Always Use Internet Explorer to False and then click OK.
- Select any .aspx page from the Samples project.
- Right-click the .aspx page and select Browse With.
- In the Browse With window click Add, browse to TASim.exe, and then click OK. In the default SASDK installation, TASim.exe is located at:
- C:\Program Files\Microsoft Speech Application SDK 1.1\SDKTools\Telephony Application Simulator\
- In the Browse With window, select TASim.exe, click Set as Default, and then click OK.
- In Solution Explorer, expand the directory containing the sample to be run, right-click the Page1.aspx file for that sample, and select Set As Start page.
- Press CTRL+F5 to build and run the solution. The solution compiles, the Telephony Application Simulator console and Speech Debugging Console open, and the sample begins running.
Opening, Compiling, and Running the Tap-and-Talk Sample in Visual Studio .NET 2003
This section describes how to use Visual Studio .NET 2003 to open, compile, and run the tap-and-talk sample application.
To open, compile, and run tap-and-talk within the Visual Studio .NET 2003 environment
- Go to the SASDK applications directory located at:
- C:\Program Files\Microsoft Speech Application SDK 1.1\Applications\
- Double-click Samples.sln.
- In the Visual Studio .NET 2003 Solution Explorer, right-click the Samples project file.
- From the pop-up menu, select Properties to open the Samples Property Pages window.
- Select Configuration Properties, and then select Debugging.
- In the drop-down menu next to Debug Mode, select Program, and then click Apply.
- In the right pane under Start Options, set Always Use Internet Explorer to True and then click OK.
- In the drop-down menu next to Start Application, type %ProgramFiles%\Internet Explorer\iexplore.exe, and then click OK.
- In Solution Explorer, expand the TapAndTalk directory, right-click Page1.aspx, and select Set As Start page.
- Press CTRL+F5 to build and run the solution. The solution compiles, Internet Explorer opens, and the sample begins running.