Form1.frm
资源名称:speech.zip [点击查看]
上传用户:jiedecard
上传日期:2007-01-06
资源大小:2k
文件大小:1k
源码类别:
语音合成与识别
开发平台:
Visual Basic
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 3195
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4680
- LinkTopic = "Form1"
- ScaleHeight = 3195
- ScaleWidth = 4680
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command1
- Caption = "Command1"
- Height = 495
- Left = 1800
- TabIndex = 0
- Top = 1320
- Width = 1215
- End
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- 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