Text to Speech in VB.NET

58,475

7

3

Introduction: Text to Speech in VB.NET


Step 1: Make a New WindowsFormApplication

make a new project and name it what you want.

Step 2: Add a Text Box and a Button

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

Step 3: Code

double click the button. put this code in:

        Dim SAPI
        SAPI = CreateObject("SAPI.spvoice")
        SAPI.Speak(TextBox1.Text)

Download Here:

http://www.mediafire.com/?6dueui4g33bp5gy

Step 4: Run the Program

2 People Made This Project!

Recommendations

  • CNC and 3D Printing Contest

    CNC and 3D Printing Contest
  • Puzzles Challenge

    Puzzles Challenge
  • Lamps Challenge

    Lamps Challenge

3 Comments

0
ParikshitS
ParikshitS

8 years ago on Introduction

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

0
TheVBCoder
TheVBCoder

Reply 11 months ago

It isn't that necessary!

1
NathanN28
NathanN28

6 years ago

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.