Skip to content

Instantly share code, notes, and snippets.

@duncansmart
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duncansmart/11297243 to your computer and use it in GitHub Desktop.
Save duncansmart/11297243 to your computer and use it in GitHub Desktop.
using System;
using System.Speech.Synthesis; // Add System.Speech from Add Reference
class Program
{
static void Main(string[] args)
{
Console.Write("Enter your name: ");
var name = Console.ReadLine();
var speech = new SpeechSynthesizer();
speech.Speak("hello " + name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment