Posts

Showing posts from November 29, 2009

Programming Speech in WPF - Speech Synthesis

Image
New Microsoft Speech API (SAPI) version 5.3, which is an integral part of Windows Vista, is a managed API that allows developers to write speech-enable applications in .NET Framework 3.0.  This speech functionality is defined in the System.Speech and its five sub namespaces. Physically, the speech API resides in System.Speech.Dll assembly. Here is a list of five namespaces that defines Speech related functionality. System.Speech.Audioformat System.Speech.Recognition System.Speech.Recognition.SrgsGrammar System.Speech.Synthesis System.Speech.Synthesis.TtsEngine To access Speech API in WPF, you must add System.Speech.Dll assembly reference to a project. Right click on the project name in Solution Explorer, select Add Reference and select System.Speech on the .NET Tab and select OK button as shown in Figure 1. Figure 1. This action will add System.Speech assembly reference and copy System.Speech.dll to the bin folder of your project.  Now you can import System.Sp

ASP.NET MVC Web Application using LINQ to SQL Classes

Image
In this article we'll see how to use with LINQ to SQL Classes. Get Started - After installing MVC framework SDK you will see a new template in installed visual studio templates 'ASP.NET MVC Web Application'. Create a new project using ASP.NET MVC Web Application : Figure1. Next step if you want create unit test project or not? When you create a new ASP.NET MVC application, the Create Unit Test Project dialog appears (see Figure 2). This dialog enables you to create a separate project in your solution for testing your ASP.NET MVC application. Select the option No, do not create a unit test project and click the OK button. Figure2. After the new ASP.NET MVC application is created, you will see several folders and files in the solution explorer. There are five folders by default Content, Controllers, Models, Scripts, and Views. Figure3. After execution output will look like this. Figure4. Now time to add a new item 'LINQ t