.Net3.0实现文本语音朗读的方法 |
作者:VB-Tips 来源:VB-Tips 更新时间:2009-10-20 |
.Net3.0实现文本语音朗读的方法 The .Net Framework 3.0 has added some managed Text to Speech functions. For this example you to add a reference to System.Speech. I have placed a Listbox (to show the available voices on your machine), textbox, and button on a form. When you click on the button your computer will say the text in your textbox in the voice selected in the listbox. Imports System.Speech.Synthesis Public Class Form1 Private Sub btnSay_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSay.Click Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load |
|
来自: nxhujiee > 《vb.net技巧》