I'm currently trying out the trial version of Lawrence for a program I'm working on, and are running into a little problem. As in, the voice is useless unless I find a way to work around it.
Which would be a damn shame, it's perfect for it.
Take the following example code, taken from the Form1 class:
- Code: Select all
SpVoice voice = new SpVoice();
private void button1_Click(object sender, EventArgs e)
{
voice.Speak("Hello World", SpeechVoiceSpeakFlags.SVSFlagsAsync);
}
Keeps giving me the following exception:
ArgumentException was unhandled
Value does not fall within the expected range.
I'm working with C# in Visual Studio if that helps. Microsoft Anna works fine, and Lawrence works well everywhere else I've tested it.
Can anyone think of anything that could cause this? Thanks in advance.