03-12-2012, 11:57 PM
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:
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.
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.");
System.out.println("I prefer Java.");