goxr3plus / Java-Speech-Recognizer-Tutorial--Calculator

:lips: Java-Speech-Recognizer-Tutorial--Calculator
Apache License 2.0
52 stars 74 forks source link

Following error is occurring.. how to resolve #1

Open namanjainn opened 7 years ago

namanjainn commented 7 years ago

Jan 18, 2017 5:24:41 PM model.Main INFO: Loading..

Exception in thread "main" Property exception component:'jsgfGrammar' property:'grammarLocation' - Can't locate resource:/grammars edu.cmu.sphinx.util.props.InternalConfigurationException: Can't locate resource:/grammars at edu.cmu.sphinx.util.props.ConfigurationManagerUtils.getResource(ConfigurationManagerUtils.java:468) at edu.cmu.sphinx.jsgf.JSGFGrammar.newProperties(JSGFGrammar.java:228) at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:518) at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:296) at edu.cmu.sphinx.linguist.flat.FlatLinguist.newProperties(FlatLinguist.java:222) at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:518) at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:296) at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.newProperties(SimpleBreadthFirstSearchManager.java:177) at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:518) at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:296) at edu.cmu.sphinx.decoder.AbstractDecoder.newProperties(AbstractDecoder.java:81) at edu.cmu.sphinx.decoder.Decoder.newProperties(Decoder.java:36) at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:518) at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:296) at edu.cmu.sphinx.recognizer.Recognizer.newProperties(Recognizer.java:86) at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:518) at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:163) at edu.cmu.sphinx.api.Context.(Context.java:73) at edu.cmu.sphinx.api.Context.(Context.java:45) at edu.cmu.sphinx.api.AbstractSpeechRecognizer.(AbstractSpeechRecognizer.java:44) at edu.cmu.sphinx.api.LiveSpeechRecognizer.(LiveSpeechRecognizer.java:34) at model.Main.(Main.java:55) at model.Main.main(Main.java:165)

namanjainn commented 7 years ago

screenshot I have followed the steps: attaching screenshot to showcase directory structure of the project

goxr3plus commented 7 years ago

Hello mamanjain . If you look closely at the video tutorials you can see that the resources folder is actually a package folder along with src folder so (below is a similar project in which i am using Sphinx :

🍒You go right click on the project [SimpleSpeechRecog] and create a package name it resources etc.... inside it create the packages grammars and libraries.

The right click:

screenshot28287

Image from similar project:

screenshot9386

amyrick commented 7 years ago

i also get the same issue how i resolve it ? give an any idea sir?...

goxr3plus commented 7 years ago

@amyrick The answer is above . Please read carefully and it will resolve your problem :) . You can see that **resources** is a **Package Folder** not just a folder outside of the Project . That's a common misconception , though i have shown it on the tutorial .

amyrick commented 7 years ago

Thanku so Much sir , using netbeans i done it .

On May 25, 2017 6:19 AM, "GOXR3PLUS STUDIO" notifications@github.com wrote:

@amyrick https://github.com/amyrick I have added the answer , it is above . Please read carefully and it will resolve your problem :) . You can see that resources is a Resource Folder not just a folder outside of the Project . That's a common missconception , though i have shown it on the tutorial .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/goxr3plus/Java-Speech-Recognizer-Tutorial--Calculator/issues/1#issuecomment-303892152, or mute the thread https://github.com/notifications/unsubscribe-auth/ANU-V_86YHX-m5_GgoUmZAX-e_V6B-eDks5r9NAXgaJpZM4LmzVv .

goxr3plus commented 6 years ago

@namanjainn @amyrick Guys is this error resolved should i close the issue :) ?