Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- using System.Speech.Synthesis;
- class HelloWorld
- {
- static void Main()
- {
- Console.OutputEncoding = Encoding.UTF8;
- Console.WriteLine("Здравей Свят");
- using (SpeechSynthesizer synth = new SpeechSynthesizer())
- {
- synth.SetOutputToDefaultAudioDevice();
- synth.Speak("Hello World");
- }
- Console.WriteLine();
- Console.WriteLine("Press any key to exit...");
- Console.ReadKey();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement