Guest User

introcsharpSynthesVoice

a guest
Mar 13th, 2014
161
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using System.Threading;
  10. using System.Speech.Synthesis;
  11.  
  12. namespace voice
  13. {
  14.     public partial class Form1 : Form
  15.     {
  16.         SpeechSynthesizer stanislava = new SpeechSynthesizer();
  17.  
  18.         public Form1()
  19.         {
  20.             InitializeComponent();
  21.         }
  22.  
  23.         private void btnSpeak_Click(object sender, EventArgs e)
  24.         {
  25.             stanislava.Speak(textBox1.Text);
  26.         }
  27.     }
  28. }
RAW Paste Data