Making a computer talk is actually a simple matter, you start of by going to Project > Add Reference then you click the System.Speech and add it.
Now you have to go to your forms code, and ABOVE Public Class Form1 you write Imports System.Speech
Under Public Class Form1 you write:
Public Synth as New.SpeechSynthesizer
Now you create a button, and under it you write:
synth.speak("Hello world")
and that's it! If you run your program and click the button, you will hear your program say "hello world".
-Rasmus Iversen
No comments:
Post a Comment