SpeakComputers.com
Home
Software
Electronics
Desktop Computers
Laptops
Games
Handheld Devices
Mobile Phones
Cameras
Camcorders
Printers
Books
Software Downloads 2012 Software Mac Software Security Student Editions Windows 7 Office 2010
ASP.NET C# VB.NET C++ .NET Infragistics DevComponents

Speaking Clock (TTS) and C#

You can easily create a speaking clock with a few lines of code using C# and .Net.

Create a new Windows Forms Project. In your new Project, add a reference to the System.Speech dll. (.Net 3.0 required).

In the code view of the main form, create a new Speech Synthesizer object as below.

System.Speech.Synthesis.SpeechSynthesizer SpeakingClock = new System.Speech.Synthesis.SpeechSynthesizer();

Add a Timer control to the main form and in the timer tick event add the following.

this.label1.Text = DateTime.Now.ToString();
DateTime dt = DateTime.Now;
if (dt.Minute == 17)
{
SpeakingClock.Speak(dt.ToString ());
}

On the forms load event, start the timer.

this.timer1.Start();
Computer Security
AntiVirus Software
Internet Security
Parental Controls
Backup & Recovery
Computer Protection
Anti Malware
Photo & Video
Photo & Video Editing
Video Music
Desktop Publishing
Professional Design
Home Publishing
Clipart
Business & Accounting
Accounting
Payroll
Check Printing
TAX
H&R Block
Microsoft Office
Design
Graphic Design
Home Design
Garden Design
Interior Design
Computer Aided Design
3D Design
Students & Teacher
Adobe
Microsoft Office
Dragon Naturally Speaking
Corel Draw
Serif
Student/Teacher Software
Copy Right 2006 SpeakComputers.com - All Rights Reserved.
Home About Privacy Policy Resouces