Discussion:
SDK/API?
(too old to reply)
Axel Gillert
2007-04-13 10:38:03 UTC
Permalink
Hi!

i want to try some of the c# examples of the MSDN for Speech Synthesis under
Vista and VS2005.
I always get the error message that an assembly is missing.
Do i need a special SDK?

My Code is:

using System;
using System.Speech.Synthesis;

namespace TTS_Console_Sample_1
{
class Program
{
static void Main(string[] args)
{
SpeechSynthesizer synth = new SpeechSynthesizer();
synth.SpeakText("Hello, world!");
}
}
}

best regards
Axel
Michael Dunn
2007-04-15 06:02:02 UTC
Permalink
Make sure you have the .NET 3.0 Framework installed. (In Vista just go to add
Windows components) And then manually reference the System.Speech dll.

Just to note: It is Speak or SpeakAsync there is no SpeakText method.
--
Michael D. Dunn

Magenic Technologies
www.magenic.com
blog: http://gotspeech.net/blogs/michaeldunn
Post by Axel Gillert
Hi!
i want to try some of the c# examples of the MSDN for Speech Synthesis under
Vista and VS2005.
I always get the error message that an assembly is missing.
Do i need a special SDK?
using System;
using System.Speech.Synthesis;
namespace TTS_Console_Sample_1
{
class Program
{
static void Main(string[] args)
{
SpeechSynthesizer synth = new SpeechSynthesizer();
synth.SpeakText("Hello, world!");
}
}
}
best regards
Axel
Loading...