I just want to set up a simple project to add a custom training text,
besides the two default built-in texts. (unless this already exists
somewhere)
"Chris" wrote:
Hi, yes there is somewhere.
try this (can't actually recall which includes are needed)
using System;
//using System.Drawing;
//using System.Collections;
//using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
//just setup a new win form
//and then call the below with some text from an event
private void Speak(string textToSpeak)
{
if (textToSpeak != String.Empty)
{
this.BeginInvoke(new MethodInvoker(delegate{
SpeechLib.SpVoice spkr = new SpeechLib.SpVoice();
spkr.Speak(textToSpeak,
SpeechLib.SpeechVoiceSpeakFlags.SVSFlagsAsync);
}));
}
}
Hope that helps