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.");
#2
Thanks for the share! This really is easy!
My Blog | My Setup | My Videos | Have a wonderful day.
#3
It is easy! <!-- sWink --><img src="{SMILIES_PATH}/icon_e_wink.gif" alt="Wink" title="Wink" /><!-- sWink -->
Also known as Rocketalypse.
System.out.println("I prefer Java.");


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

Forum Jump:


Users browsing this thread: 1 Guest(s)