Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# .NET GimmeCode
Text-to-Speech Conversion code if some one knows
Posted 8-Nov-10 4:43am
Edited 8-Nov-10 4:48am
JF201553.3K
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 OriginalGriff 277
1 Maciej Los 210
2 BillWoodruff 205
3 DamithSL 165
4 Tomas Takac 144
0 OriginalGriff 5,130
1 DamithSL 4,157
2 Maciej Los 3,670
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,821


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