Dim sp As new
DotNetSpeech.SpVoice()
For Each
st As
Dotnetspeech.SpObjectToken In sp.GetVoices
Output.Show(st.GetDescription)
Next
运行以上代码,会显示:
Microsoft Sam
IQ Cherry
IQ John
IQ Annie
Microsoft Simplified Chinese
ScanSoft Sin-Ji_Full_22kHz
然后:
DIM n as integer = 0
sp.Voice =
sp.GetVoices(String.Empty,String.Empty).Item(n)
sp.rate = 0
sp.Speak("text",
DotNetSpeech.SpeechVoiceSpeakFlags.SVSFlagsAsync)
当n=0,4,5都能正确播报语音,但n=1,2,3时就报错

此主题相关图片如下:qq截图20130814104957.png

我知道第1,2,3个语音库是安装得不正确,但现在怎样处理呢?
[此贴子已经被作者于2013-8-14 10:59:59编辑过]