转自 http://www.cnblogs.com/Hans2Rose/p/WeatherSpeaker.html

.Net里面自带了一个语音类库:System.Speech,调用系统的语音功能,就能实现string到语音的转换,很简单(记得先把电脑音量调大一下):

 //Add System.Speech reference first
 using System.Speech.Synthesis;
 
 var reader = new SpeechSynthesizer();
 reader.SpeakAsync("I'm a programer. Hello, world! ");

相关文章:

  • 2021-06-30
  • 2021-08-12
  • 2022-12-23
  • 2021-11-29
  • 2022-01-01
  • 2023-02-14
猜你喜欢
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
  • 2021-05-19
  • 2021-11-29
相关资源
相似解决方案