Click here to Skip to main content
12,394,573 members (70,298 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# .NET
Text-to-Speech Conversion code if some one knows
Posted 8-Nov-10 3:43am
Updated 8-Nov-10 3:48am
JF201554.7K
v2
Comments
PogoboyKramer 8-Nov-10 9:46am
   
This is getting ridiculous. You really need to not repost the same questions over and over. As well, if you want a "good" answer, try to put a little more effort into your questions? The good people here at CP are volunteering themselves to help you. If you want someone here to make an effort for you, then make an effort yourself.
shakil0304003 8-Nov-10 10:05am
   
What you tried?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Google[^] not working where you are?
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

You could always use Google. After a quick search I came up with this:
using System.Speech.Synthesis;
public class SpeechOutput
{
   private static SpeechSynthesizer speaker;
   public static void Main(String[] args)
   {
      speaker = new SpeechSynthesizer();      
      speaker.SetOutputToDefaultAudioDevice();
      //Speed(-10 - 10)
      speaker.Rate = 1;
      //Volumn (0-100)
      speaker.Volume = 100;
      //Select Voice
      speaker.SelectVoiceByHints(VoiceGender.Female, VoiceAge.Adult);
      //Speak the Text (cancel with speaker.CancelAsync())
      speaker.SpeakAsync("Hello World");
   }
 
   //Additional methods
   private static List<VoiceInfo> GetInstalledVoices() 
   {
      var listOfVoiceInfo = from voice
                            in  speaker.GetInstalledVoices()
                            select voice.VoiceInfo;
      return listOfVoiceInfo.ToList<VoiceInfo>();
   }
}
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

using SpeechLib;
 
SpVoice objSpeech = new SpVoice();
objSpeech.Speak(textBox1.Text,SpeechVoiceSpeakFlags.SVSFlagsAsync);
objSpeech.WaitUntilDone(Timeout.Infinite);
For more, You can see this link

Click

Click

Click

Click


Please vote and Accept Answer if it Helped.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 16 May 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100