Page 1 of 1

C# Programming error, Lawrence causing Exceptions

PostPosted: Tue Oct 20, 2009 1:20 am
by Archon
Hi.

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.

PostPosted: Mon Jun 21, 2010 9:54 am
by painter306
Hi, I'm having the same issue with Lawrence and Millie with one of my apps, when i run it as admin it works, but throws that exception when i call the app from a web app. Did you ever find a solution?