Results 1 to 4 of 4
  1. #1
    GG2GG's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    United Kingdom
    Posts
    3,382
    Reputation
    21
    Thanks
    4,294,967,295
    My Mood
    Blah

    How To Utilize Text to Speech in your application

    its quite simple really

    add this code to a button, with a textbox named "textbox1"
    or change "textbox1.text" to your desired text, and use it on a button or on form load.

    Code:
    Dim Speech
                Speech = CreateObject("sapi.spvoice")
                Speech.Speak("textbox1.text")

  2. The Following User Says Thank You to GG2GG For This Useful Post:

    amrit0965 (12-15-2012)

  3. #2
    maarten551's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    75
    My Mood
    Mellow
    lol i found a wrong thing

    you did
    Dim Speech
    Speech = CreateObject("sapi.spvoice")
    Speech.Speak("textbox1.text")

    i need to be

    Dim Speech
    Speech = CreateObject("sapi.spvoice")
    Speech.Speak(textbox1.text)

    without the "" by speech.speak

  4. #3
    Gilcrow's Avatar
    Join Date
    Oct 2006
    Gender
    male
    Posts
    1,370
    Reputation
    31
    Thanks
    86
    My Mood
    Breezy
    Quote Originally Posted by maarten551 View Post
    lol i found a wrong thing

    you did
    Dim Speech
    Speech = CreateObject("sapi.spvoice")
    Speech.Speak("textbox1.text")

    i need to be

    Dim Speech
    Speech = CreateObject("sapi.spvoice")
    Speech.Speak(textbox1.text)

    without the "" by speech.speak
    correct however this wasnt a tutorial on the basics of Vb, it was a tutorial on how to use microsofts text to speech within visual basics

  5. The Following User Says Thank You to Gilcrow For This Useful Post:

    amrit0965 (12-15-2012)

  6. #4
    maarten551's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    75
    My Mood
    Mellow
    sorry :P

    was trying to help

Similar Threads

  1. [TuT] How to make a Text to Speech Program For noobs
    By ryski123 in forum Visual Basic Programming
    Replies: 10
    Last Post: 03-12-2011, 09:16 PM
  2. How To Make A Text To Speech
    By gunnybunny in forum Visual Basic Programming
    Replies: 1
    Last Post: 08-24-2009, 08:57 AM
  3. How to add a Virus Scan to your theads. *Stick Me*
    By maphia1 in forum General Game Hacking
    Replies: 9
    Last Post: 07-02-2009, 01:33 PM
  4. how to take a basic screeny on your pc
    By Hyak in forum Spammers Corner
    Replies: 5
    Last Post: 04-23-2009, 10:06 AM
  5. How to make a ShutDown ShortCut at your Desktop
    By Silk[H4x] in forum Programming Tutorials
    Replies: 3
    Last Post: 08-16-2008, 07:40 AM

Tags for this Thread