Membuat komputer berbicara di VB.NET
Tutorial kali ini yaitu membuat komputer anda bisa bicara apa yang anda tulis...
langsung saja buka VB.NET anda
Pilih File - > New Project - > Windows Form Application - > beri nama komputer berbicara
tambahkan 1 buah textbox,1 buah trackbar,1buah button,dan 2 buah label
ubah tampilan sesuai keinginan anda
Ubah properties :
Form1
text = Komputer Berbicara
label1
text = Slow
label2
text = fast
button1
text = speak
setelah itu masukan coding sebagai berikut :
Public Class Form1
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim sapi
sapi = CreateObject("sapi.spvoice")
sapi.rate = TrackBar1.Value
sapi.speak(TextBox1.Text)
End Sub
End Class
{ 0 comments... read them below or add one }
Post a Comment