ArgumentException was unhandled

Voices aren't working properly?

ArgumentException was unhandled

Postby Blackrabbit » Fri Jan 11, 2008 10:54 am

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)

Posts: 1
Joined: Fri Jan 11, 2008 10:51 am

Same problem

Postby gingo » Thu Jan 29, 2009 4:09 am

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?
Posts: 1
Joined: Wed Jan 28, 2009 4:52 pm

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

did either of you manage to find a solution? I"m having the same problem as the OP.
Posts: 3
Joined: Mon Jun 21, 2010 9:31 am

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 1 guest