Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

VB.NET Tutorial #1: Text to speech!

This is my first tutorial on here, for those who don't know about this.
It's very simple, and it can be pretty cool to use if your really bored.
Basically, you have to do the following steps;
1 - Create a new VB.net windows form application.

2 - In the form, add a button. This button will be used for the voice. You can use multiple ones for different text.

3 - Double tap a button that you want to edit, and add the following code.
Code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim SAPI
        SAPI = CreateObject("SAPI.spvoice")

        SAPI.Speak("This is the text that will be spoken")

    End Sub
End Class

That's it for this simple tutorial, hope someone finds this useful even though it's not much.
(Oct 22, 2015 08:43 PM)Tweety. Wrote:  This isn't helping anyone.
Just stop.

Everyone is the most happiest people with their first apps...

OP: Text to speech was probably the in the firsts apps made by most beginners programmers... Its actually a nice idea :D
(Oct 22, 2015 09:50 PM)Four. Wrote:  Lol get off the internet you weaboo.
Stop jacking off to any new anime you find

This tutorial was as half-assed as it gets. Clearly youre just doing it for the rep, so instead of giving copy/paste code and talking absolute shit to people, actually consider putting time into what you post by explaining everything so beginners understand.
If you cant even do that then it really isnt worth posting a tutorial like this as it helps no one.
OP tutorials should offer an explanation on the code, rather than just telling people to paste it in and enjoy.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by bots4totsSep 7, 2019 07:59 AM 2 379 Sep 7, 2019 07:59 AM
Last Post: bots4tots
[C#] by HardStoNJun 2, 2019 04:42 PM 3 176 Jun 2, 2019 04:42 PM
Last Post: 0xDEAD10CC
[Python] by Hello BuddyDec 11, 2017 11:36 PM 2 173 Dec 11, 2017 11:36 PM
Last Post: klorox