+ Reply to Thread
Results 1 to 2 of 2

Thread: Speech Synthesis

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    16

    Speech Synthesis

    I would like to give the program a text and it reads it , i heard of Speech Synthesis library in .net Net but never tried it.
    Last edited by veia; 11-09-2012 at 12:43 AM.

  2. #2
    Junior Member
    Join Date
    Jan 2012
    Posts
    22
    You need to have at least .net framework 3
    Code:
    using System.Speech.Synthesis;
    
    SpeechSynthesizer speaker = new SpeechSynthesizer();
    speaker.Rate = 1;
    speaker.Volume = 100;
    speaker.Speak("Hello world.");
    
    // if you want to save the output speaker to .wav file
    speaker.SetOutputToWaveFile("c:\soundfile.wav");
    speaker.Speak("Hellow world.");
    speaker.SetOutputToDefaultAudioDevice();
    //Must remember to reset out device or the next call to speak

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts