当前位置:在线查询网 > 在线百科全书查询 > vb朗读

vb朗读_在线百科全书查询


请输入要查询的词条内容:

vb朗读


下面代码可朗读英文我又下载了中文朗读库这个是下载地址

http://www.zy-english.com/download/chinese.exe

下述代码引用的是Vtxtauto.tlb就能朗读英文,朗读中文要引用那个文件呢?

如何象下述代码一样能够实现使程序能够朗读中文呢?

Dim vText As New VTxtAuto.VTxtAuto

Private Sub Command1_Click()

Dim astr As String

Command1.Enabled = False

vText.Register vbNullString, "Speech"

''vtext.Register

astr = "This is a sample of Microsoft Speech Engine?"

vText.Speak astr, vtxtsp_NORMAL Or vtxtst_QUESTION

End Sub

Private Sub Form_Unload(Cancel As Integer)

Set vText = Nothing

End Sub

相关分词: vb 朗读