Speech Recognition(Voice) using C#

0 comments
This Article explains you how to Convert Entered text to Speech Recognition(Voice) using C#. Before Starting to Write a code for converting a text intoSpeech Recognition(Voice). You have to add Reference (Download if not available) Interop.SpeechLib.

Speed1.gif

  1. Add the NameSpace as Using SpeechLib.
  2. Create an object of SpVoice class

    SpVoice voice = new SpVoice();
     
  3. Call the Speak() method by using Spvoice class object as follows and pass the parameters in the Speak()
    voice.Speak(String text,SpeechVoiceSpeakFlags Flags);
Lets Look the code:
            SpVoice voice = new SpVoice();
            voice.Volume = 100;
            voice.Speak(textBox1.Text, SpeechVoiceSpeakFlags.SVSFlagsAsync);

Place the above code in the Button Click event.

Add one TextBox ,write some text in TextBox and click on the button to convert you TextBox text into Speech Recognition(VOICE) as follows
Speed2.gif

READ MORE >>

0 comments: