neospeech语音库在c#中怎么用

trista_xie 2011-05-15 09:50:31
neospeech语音库在c#中怎么用啊,用com组件添加引用吗,是哪个引用啊,具体给说说,谢谢啦
...全文
563 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
bright_21st 2011-05-26
  • 打赏
  • 举报
回复
VM Paul是引擎的名字,用下面的代码可以调用。我用VS2010做的。

using System;
using System.Collections.Generic;
using System.Speech.Synthesis;


namespace Speach
{
class Program
{
static void Main(string[] args)
{
SpeechSynthesizer synth = new SpeechSynthesizer();
synth.Rate = 0;
synth.Volume = 100;
synth.SelectVoice("VW Paul");
// synth.SelectVoiceByHints(VoiceGender.Female, VoiceAge.Adult);
synth.Speak("It is an essential principle that we must combine theory with practice");
synth.Dispose();
}
}
}
bright_21st 2011-05-26
  • 打赏
  • 举报
回复
装完发声引擎后,可以在控制面板选NEOSPEECH发声引擎为系统默认发声引擎。
具体怎么调用,我还没弄清楚。

111,093

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧