请输入您要查询的百科知识:

 

词条 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

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/2/27 7:30:04