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

更多推荐