User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 397,766 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,493 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser:
Jun 9th, 2007
Views: 1,794
Note This app will tell the current Time, requires .net 3.0
c Syntax
  1. /*
  2.  * Created by SharpDevelop.
  3.  * User: Development
  4.  * Date: 06-Jun-07
  5.  * Time: 4:40 PM
  6.  *
  7.  * To change this template use Tools | Options | Coding | Edit Standard Headers.
  8.  */
  9. using System;
  10. using System.Speech.Synthesis;
  11. using System.Collections.Generic;
  12.  
  13. namespace SpeakingClock
  14. {
  15. class MainClass
  16. {
  17. public static void Main(string[] args)
  18. {
  19. System.Speech.Synthesis.SpeechSynthesizer Speak = new SpeechSynthesizer();
  20. Speak.Rate = 3; /The Voice Speed
  21. System.Console.WriteLine(DateTime.Now.ToString());
  22. Speak.Speak(DateTime.Now.ToString());
  23.  
  24.  
  25. }
  26. }
  27. }
Comments (Newest First)
vegaseat | Kickbutt Moderator | Jul 16th, 2007
Needs to be moved to csharp snippets.
Post Comment

Only community members can submit or comment on code snippets. You must register or log in to contribute.

DaniWeb Marketplace (Sponsored Links)
All times are GMT -4. The time now is 4:09 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC