leXor
Newbie
Posts: 4
Joined: Mon Apr 20, 2015 8:28 pm

Error when initializing SpeechRecognizer [SOLVED]

Tue Apr 21, 2015 3:16 pm

Hi,

Sorry if this is the wrong forum section. This issue relates to Syn Speech.
Whenever I try to initialize the SpeechRecognizer (Stream or Live), I get the error below.
The .dict and .dmp are both in the correct location and are stock from CMU.
This happends both on the Demo application and when creating and application from scratch.
Any ideas?

_recognizer = new StreamSpeechRecognizer(configuration);

Syn.Speech.Util.Props.InternalConfigurationException: Can't instantiate class Syn.Speech.Recognizers.Recognizer ---> Syn.Speech.Util.Props.InternalConfigurationException: Can't instantiate class Syn.Speech.Decoders.Decoder ---> Syn.Speech.Util.Props.InternalConfigurationException: Can't instantiate class Syn.Speech.Decoders.Search.SimpleBreadthFirstSearchManager ---> Syn.Speech.Util.Props.InternalConfigurationException: Can't instantiate class Syn.Speech.Linguist.Flat.FlatLinguist ---> System.FormatException: Input string was not in a correct format.

User avatar
Leslie
Lead Software Architect
Posts: 378
Joined: Fri Sep 14, 2012 12:20 pm
Contact: Website

Re: Error when initializing SpeechRecognizer

Tue Apr 21, 2015 5:47 pm

The demo application is running fine in my machine (Windows 7 64Bit with .Net Framework 4.5). I did connect the mic before running the application.

Please provide us with the following information:
  • Are you working on Linux or Windows ?
  • Are you running Syn Speech in Mono or .Net Framework ?
  • Link from where you've downloaded the dictionary and language model files.
  • Is your machine running in English-US culture or any other language ?
Note: I've moved your post to this section on your behalf.

leXor
Newbie
Posts: 4
Joined: Mon Apr 20, 2015 8:28 pm

Re: Error when initializing SpeechRecognizer

Tue Apr 21, 2015 8:12 pm

Thanks for the reply.

I'm running Windows 8.1 64-bit.
Syn Speech in .Net framework
The dict and model included in the Demo did not work for me.
The system language settings is English, however locale/number formats is Sweden.

Let me know if I can provide any additional info. Thanks!

User avatar
Fantom
Help & Support
Posts: 320
Joined: Fri Oct 25, 2013 9:20 pm

Re: Error when initializing SpeechRecognizer

Tue Apr 21, 2015 8:32 pm

thanks for the details. I will now run the engine in a virtual machine with your configuration to check if it works.

leXor
Newbie
Posts: 4
Joined: Mon Apr 20, 2015 8:28 pm

Re: Error when initializing SpeechRecognizer

Tue Apr 21, 2015 8:35 pm

Hmm. Interesting.

Since you mentioned Culture, I tried changing mine from Swedish (sv-SE) to English (en-US), before constructing the StreamSpeechRecognizer.
And it works!

I'll do this as a workaround until the bug is fixed :)

User avatar
Leslie
Lead Software Architect
Posts: 378
Joined: Fri Sep 14, 2012 12:20 pm
Contact: Website

Re: Error when initializing SpeechRecognizer

Tue Apr 21, 2015 11:15 pm

A new version has been uploaded and we've fixed some similar bugs (though we couldn't reproduce the exact error).

Please download the latest version from NuGet by typing Install-Package Syn.Speech in the Package Manager Console and do let us know if the engine is working fine on your end.

We've also updated the GitHub repository.

leXor
Newbie
Posts: 4
Joined: Mon Apr 20, 2015 8:28 pm

Re: Error when initializing SpeechRecognizer

Wed Apr 22, 2015 2:37 am

It loads fine (without the locale hack) in the new version!

Amazing turnaround :)
Good work guys!

Return to “Report Bugs and Issues”

Who is online

Users browsing this forum: No registered users and 2 guests