Introduction: Text to Speech in VB.NET

Picture of Text to Speech in VB.NET

Step 1: Make a New WindowsFormApplication

Picture of Make a New WindowsFormApplication

make a new project and name it what you want.

Step 2: Add a Text Box and a Button

Picture of Add a Text Box and a Button

Keep The textbox blank. Change the text of button to "Say The Text".

Step 3: Code

Picture of Code

double click the button. put this code in:

        Dim SAPI
        SAPI = CreateObject("SAPI.spvoice")

Download Here:

Step 4: Run the Program

Picture of Run the Program


NathanN28 (author)2016-11-29

You can also add a trackbar to the form and add the code:

SAPI.volume = TrackBar1.Value * 10

This will allow you to control the volume of the voice in run time.

NevilleC made it! (author)2015-07-03

I also MADE IT!

and i added speech recognition also from a tutorial I found on

ParikshitS (author)2014-08-18

You haven't mentioned the volume. ?????
SAPI.Volume = 100

About This Instructable




Add instructable to: