engin
Newbie
Posts: 2
Joined: Wed Mar 23, 2016 1:47 pm

Error while using custom language model

Wed Mar 23, 2016 3:38 pm

Hello Guys,

I'm a newbee in developing apps using syn.speech library. I'have been trying to use my pre-created language model and dictionary with the acustic model for cmu sphinx. Unfortunately, whenever I run the sample application I get an error on the function speechRecognizer.GetResult();. Error messages is below;

23.3.2016 10:39:54 Error StreamSpeechRecognizer System.Collections.Generic.KeyNo
tFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Syn.Speech.Linguist.Language.NGram.SimpleNGramModel.GetProb(WordSequence w
ordSequence)
at Syn.Speech.Linguist.Language.NGram.SimpleNGramModel.GetProbability(WordSeq
uence wordSequence)
at Syn.Speech.Linguist.LexTree.LexTreeState.CreateWordStateArc(WordNode wordN
ode, HMMNode lastUnit, LexTreeState previous)
at Syn.Speech.Linguist.LexTree.LexTreeWordState.GetSuccessors()
at Syn.Speech.Decoders.Search.WordPruningBreadthFirstLookaheadSearchManager.C
ollectSuccessorTokens(Token token)
at Syn.Speech.Decoders.Search.WordPruningBreadthFirstSearchManager.GrowBranch
es()
at Syn.Speech.Decoders.Search.WordPruningBreadthFirstSearchManager.LocalStart
()
at Syn.Speech.Decoders.Search.WordPruningBreadthFirstLookaheadSearchManager.L
ocalStart()
at Syn.Speech.Decoders.Search.WordPruningBreadthFirstSearchManager.StartRecog
nition()
at Syn.Speech.Decoders.Decoder.Decode(String referenceText)
at Syn.Speech.Recognizers.Recognizer.Recognize(String referenceText)
at Syn.Speech.Recognizers.Recognizer.Recognize()
at Syn.Speech.Api.AbstractSpeechRecognizer.GetResult()

My questions is that; What file can be cause this error? Is there any way to debug the code deeply?

any help will be appriciated.

kind regards,
Engin

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

Re: Error while using custom language model

Wed Mar 23, 2016 4:48 pm

Please provide the link of the models you are using for the Recognizer so that we can try to reproduce the error.

engin
Newbie
Posts: 2
Joined: Wed Mar 23, 2016 1:47 pm

Re: Error while using custom language model

Thu Mar 24, 2016 10:23 pm

Hİ FranzZ,

Here is the model files I have created for cmusphinx. Thank you for your help.

https://drive.google.com/file/d/0B8bTXj ... sp=sharing

best regards,
Engin

JeffersonStack
Pro
Posts: 44
Joined: Fri Apr 05, 2013 1:20 am

Re: Error while using custom language model

Sat May 21, 2016 7:35 pm

Maybe you can use the default language models in the sample project in GitHub :?

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest