您的位置:首页 > 其它

调用微软的语音合成库开发语音程序

2012-08-27 14:44 302 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: