C# Programming error, Lawrence causing Exceptions

Voices aren't working properly?

C# Programming error, Lawrence causing Exceptions

Postby Archon » Tue Oct 20, 2009 1:20 am

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.
Archon
 
Posts: 1
Joined: Tue Oct 20, 2009 1:09 am

Postby painter306 » Mon Jun 21, 2010 9:54 am

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?
painter306
 
Posts: 3
Joined: Mon Jun 21, 2010 9:31 am


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 5 guests

cron