Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text to Speech
#1
Hello, BP community.

Recently I've found out how to turn text to speech using only Visual Basic. It is very easy and it is useful for some programs such as Speak ABCs program or similar.

Here is the code snippet:
Code:
Dim SAPI
SAPI = CreateObject("SAPI.spvoice")

SAPI.Speak("[message]")

If you want it to speak the text from textbox, change "[message]" to Textbox1.text. This is the easiest and the simplest way.

Regards,
Vinwarez.
Also known as Rocketalypse.
System.out.println("I prefer Java.");


Messages In This Thread
Text to Speech - by Vinwarez - 03-12-2012, 11:57 PM
Re: Text to Speech - by Vinwarez - 03-13-2012, 10:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Listbox items text and text boxes? Derek275 3 16,240 11-21-2012, 12:04 PM
Last Post: brandonio21

Forum Jump:


Users browsing this thread: 1 Guest(s)