Page 1 of 1

ArgumentException was unhandled

PostPosted: Fri Jan 11, 2008 10:54 am
by Blackrabbit
Getting an exception error, not a very descriptive one, help would be appreciated. Code working with MS standard SAPI5 voices.

Code: Select all
SpeechLib.SpVoice voice = new SpeechLib.SpVoice();
voice.Speak("Test", SpeechLib.SpeechVoiceSpeakFlags.SVSFDefault);

System.ArgumentException was unhandled
Message="Value does not fall within the expected range."
at SpeechLib.SpVoiceClass.Speak(String Text, SpeechVoiceSpeakFlags Flags)


Same problem

PostPosted: Thu Jan 29, 2009 4:09 am
by gingo
I have the same problem with Allison voice.

Link to related bug:

Im traying this code:
Code: Select all
SpeechSynthesizer ss = new SpeechSynthesizer();
ICollection<InstalledVoice> voices = ss.GetInstalledVoices(new CultureInfo("en-US"));           
ss.Speak("On Tuesday fighting around the town of Khan Younis and the Kissufim border crossing left one Palestinian dead, medical sources said.");

It throw no exception, but text read not Allison, but Microsoft Sam voice. In ss.GetInstalledVoices(new CultureInfo("en-US")); list is Allison present, but her Enabled property is false.

Can somebody help us?

PostPosted: Mon Jun 21, 2010 9:52 am
by painter306
did either of you manage to find a solution? I"m having the same problem as the OP.