Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
1.00/5 (6 votes)
See more:
Text-to-Speech Conversion code if some one knows
Posted
Updated 8-Nov-10 3:48am
v2
Comments
fjdiewornncalwe 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?

Google[^] not working where you are?
 
Share this answer
 
You could always use Google. After a quick search I came up with this:
C#
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>();
   }
}
 
Share this answer
 
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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900