日期:2014-05-18  浏览次数:20675 次

郁闷,求解。
SAPI 安装后,怎么在VS2010(C#)中引用啊。

------解决方案--------------------
http://www.codeproject.com/Articles/14044/SAPI-with-Microsoft-Agent-and-Visemes-to-Explain-T
------解决方案--------------------
。net 4.0 自带的 不用那个 SDK

------解决方案--------------------
网上找不到实例吗
------解决方案--------------------
不知道那是什么。
------解决方案--------------------
是不是sapi.dll
------解决方案--------------------
http://msdn.microsoft.com/en-us/library/gg145021

using System;
using System.Speech.Synthesis;

namespace SampleSynthesis
{
class Program
{
static void Main(string[] args)
{

// Initialize a new instance of the SpeechSynthesizer.
using (SpeechSynthesizer synthesizer = new SpeechSynthesizer())
{

// Configure the audio output.
synthesizer.SetOutputToDefaultAudioDevice();


synthesizer.Speak("hello world");
}

Console.WriteLine();
Console.WriteLine("Press any key to exit...");
Console.ReadKey();
}
}
}