Dim sp As new DotNetSpeech.SpVoice()
Dim Stream As new DotNetSpeech.SpFileStreamClass()
Stream.Open("Voice\\departmentname.wav" , DotNetSpeech. SpeechStreamFileMode.SSFMCreateForWrite , False)
sp.Voice = sp.GetVoices(String .Empty, String.Empty ).item(1) <------- item(1) 能否改为语音库名字来引用?
sp.AudioOutputStream = Stream
sp.Speak(departmentname,DotNetSpeech.SpeechVoiceSpeakFlags.SVSFDefault)
Stream.Close ()