Talking VBS




Introduction: Talking VBS

About: I like coding.

This is a spin-off from for the 'Remix' contest.

Please vote, and comment if you did.

All you need is:

1. Notepad

2. Windows Computer

3. A Brain

This is an instructable of how with VBS to make a file to first welcome you with a message, and then asking you to type something that you want it to say.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Welcome Message

To make the welcome message, copy and paste into notepad the following:

Dim userInput
userInput = "Type what you want to hear"

Where it says 'Type what you want to hear', you can if you want change it to whatever you want the welcome message to be. Leave the quotation marks!

Step 2: Input

Now, you have to type:

Set Sapi = Wscript.CreateObject("SAPI.SpVoice")

Sapi.speak userInput

Dim serInput

serInput = InputBox("Type what you want to hear.")

Set Sapi = Wscript.CreateObject("SAPI.SpVoice")

Sapi.speak serInput

Step 3: Saving

Now, push save. Name whatever you like, but make sure that you click 'All Files', and save it as "Whatever.vbs".

Teach It! Contest Sponsored by Dremel

Participated in the
Teach It! Contest Sponsored by Dremel

Remix Contest

Participated in the
Remix Contest

Tech Contest

Participated in the
Tech Contest

Be the First to Share


    • Backyard Contest

      Backyard Contest
    • Silly Hats Speed Challenge

      Silly Hats Speed Challenge
    • Arduino Contest 2020

      Arduino Contest 2020

    2 Discussions


    5 years ago on Introduction

    you don't have to make another instructable for each contest, you can enter it in all the contests if you like(its probably not going to be acepted in all of them)