A Speaking APP in C# with .NET 3.0

Please support our C# advertiser: Intel Parallel Studio Home
Mahen Mahen is offline Offline Jun 9th, 2007, 10:43 am |
0
Note This app will tell the current Time, requires .net 3.0
Quick reply to this message  
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. }
0
vegaseat vegaseat is offline Offline | Jul 16th, 2007
Needs to be moved to csharp snippets.
 
 

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC