调用微软的语音合成库开发语音程序
1.首先新建项目,右键项目名称添加System.Speech引用。 2.编码:Imports SystemImports System.Speech.Synthesis具体发音处: Dim synth As SpeechSynthesizer = New SpeechSynthesizer() synth.SetOutputToDefaultAudioDevice(
·
1.首先新建项目,右键项目名称添加System.Speech引用。
2.编码:
Imports System
Imports System.Speech.Synthesis
具体发音处:
Dim synth As SpeechSynthesizer = New SpeechSynthesizer()
synth.SetOutputToDefaultAudioDevice()
'调节语速(取值为-10到10之间)
synth.Rate = 0
synth.Speak("你好")
3.具体应用可以查看msdn的 http://msdn.microsoft.com/zh-cn/library/system.speech.synthesis.speechsynthesizer.aspx更多推荐
所有评论(0)