郁闷,求解。
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();
}
}
}