Click here to Skip to main content
11,707,254 members (49,868 online)
Rate this: bad
good
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
Edited 8-Nov-10 3:48am
JF201554K
v2
Comments
PogoboyKramer at 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 at 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
0 Sergey Alexandrovich Kryukov 145
1 OriginalGriff 141
2 chainerlt 110
3 Mika Wendelius 80
4 Maciej Los 80
0 OriginalGriff 9,178
1 Sergey Alexandrovich Kryukov 8,562
2 CPallini 5,189
3 Maciej Los 4,806
4 Mika Wendelius 3,706


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 16 May 2013
Copyright © CodeProject, 1999-2015
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