发音为什么时有时无?
我编写的一个叫号程序,在叫号时时有时无,请帮我看看什么原因?
Timer1.Stop()
Dim MyVoice As New SpeechLib.SpVoice
Dim strData As String
Button1.Enabled = False
Button2.Enabled = False
If Trim(TextBox1.Text) <> "" Then
mciExecute("Play " & Application.StartupPath & "\1201.wav")
System.Threading.Thread.CurrentThread.Sleep(2000)
strData = StrConv(TextBox1.Text, VbStrConv.SimplifiedChinese, 2052)
MyVoice.Speak(strData)
End If
Button1.Enabled = True
Button2.Enabled = True
timer1.Start