SimpleTTS for C# (SAPI 5.3)

Microsoft Speech API 5.3

SimpleTTS for C#


SimpleTTS for C# is an elementary application showcasing text-to-speech (TTS). The application speaks the text in the text box using a default voice. SimpleTTS for C# can also save the speech to a wav file.


To compile SimpleTTS for C#, Visual Studio.NET and specifically Visual Studio C#.NET is required.

To run the application open ListboxSample.sln. For a standard SAPI SDK 5.3 installation this C:\Program Files\Microsoft Speech SDK 5.3\Samples\CSharp\SimpleTTS\SimpleTTS.sln. Once loaded, compile and run SimpleTTS by selection Debug>Run. The application displays the main dialog.

The samples are installed as Locked files. To modify them, they must be unlocked. To unlock, right-click the file or files, select Properties, and clear the Read-Only check box.

Using Speech List Box

Simple TTS has two options: Speak the text (Speak) or save the speech to a file (Save to .wav).


Click Speak to hear the text in the text box spoken. You can change or edit the text allowing different words or phrases to be spoken, although the text reverts to a default phrase each time you open the application. You can change the voice using Speech properties in Control Panel.

Save to .wav

Select Save to .wav to save the output to a wav file. This way, the text will not be spoken audibly. After selecting Speak, a dialog box appears requesting a file name and location to save the file. Double-click the wav file to play it back. As a wav file, it may also be used for other speech purposes such as an input source for either off-line dictation or custom engine voices.


Click the close box in the title bar to exit Simple TTS.