I have created the acoustic model using SphinxTrain. I created a folder DB in Sphinx4/models/acoustic and copied the acoustic model created by SphinxTrain in modelparameters/an4.cd_cont_1000_8 to it.
They are also mentioning a .dic file and a fillerdic file. Should we manually create these and place it in DB/dict folder or are they also created by SphinxTrain? Since the training was done using the an4.dic file is it OK if i copy that .dic file to DB/dic folder?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think I was not clear about what i asked...
I made the jar file of the acoustic model and that is DBR_8gau_13dCep_16k_40mel_140Hz_6800Hz.jar
It was formed in the sphinx4/lib folder.
They have also asked to copy two .mdef files to DB/etc folder.
But I found 4 .mdef files
an4.1000.mdef
an4.alltriphones.mdef
an4.ci.mdef
an4.untied.mdef
in the an4/model_architecture folder.Which are the two mentioned by them ? One is the *.ci.mdef which is the other?Hope I am right...
Do i need to rename them or is it enough to give these names in the model.props file? In model.props give
modelDefinition=filename.mdef
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
I am trying to run the HelloWorld demo using the acoustic model created
But I am getting this error......What is the problem??
$java -mx256m -jar bin/HelloWorld.jar
Exception in thread "main" Property Exception component:'flatLinguist' property:'acousticModel' - mandatory property is not set!
edu.cmu.sphinx.util.props.InternalConfigurationException
at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:283)
at edu.cmu.sphinx.linguist.flat.FlatLinguist.setupAcousticModel(FlatLinguist.java:220)
at edu.cmu.sphinx.linguist.flat.FlatLinguist.newProperties(FlatLinguist.java:184)
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:421)
at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:271)
at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.newProperties(SimpleBreadthFirstSearchManager.java:139)
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:421)
at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:271)
at edu.cmu.sphinx.decoder.AbstractDecoder.newProperties(AbstractDecoder.java:52)
at edu.cmu.sphinx.decoder.Decoder.newProperties(Decoder.java:31)
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:421)
at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:271)
at edu.cmu.sphinx.recognizer.Recognizer.newProperties(Recognizer.java:78)
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:421)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:163)
at edu.cmu.sphinx.demo.helloworld.HelloWorld.main(HelloWorld.java:36)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
> Unable to access jarfile lib/DBR_8gau_13dCep_16k_40mel_140Hz_6800Hz.jar
There is really no such file, why do you think it will appear there?
> But I am getting this error......What is the problem??
The acoustic model jar is missing, isn't it clear? Probably you forgot to change manifest.in. Try to search this forum, this issue was discussed many times.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hai...
I have created the acoustic model using SphinxTrain. I created a folder DB in Sphinx4/models/acoustic and copied the acoustic model created by SphinxTrain in modelparameters/an4.cd_cont_1000_8 to it.
They are also mentioning a .dic file and a fillerdic file. Should we manually create these and place it in DB/dict folder or are they also created by SphinxTrain? Since the training was done using the an4.dic file is it OK if i copy that .dic file to DB/dic folder?
hai again....
I think I was not clear about what i asked...
I made the jar file of the acoustic model and that is DBR_8gau_13dCep_16k_40mel_140Hz_6800Hz.jar
It was formed in the sphinx4/lib folder.
I had made the changes in the manifest file.
Main-Class: edu.cmu.sphinx.demo.helloworld.HelloWorld
Class-Path: ../lib/sphinx4.jar ../lib/jsapi.jar ../lib/DBR_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar
this is my helloworld_config file.
<?xml version="1.0" encoding="UTF-8"?>
<!--
Sphinx-4 Configuration file
-->
<!-- ******** -->
<!-- an4 configuration file -->
<!-- ******** -->
<config>
<component name="dbr"
type="edu.cmu.sphinx.model.acoustic.DBR_8gau_13dCep_16k_40mel_130Hz_6800Hz.Model">
<property name="loader" value="sphinx3Loader"/>
<property name="unitManager" value="unitManager"/>
</component>
<component name="sphinx3Loader"
type="edu.cmu.sphinx.model.acoustic.DBR_8gau_13dCep_16k_40mel_130Hz_6800Hz.ModelLoader">
<property name="logMath" value="logMath"/>
<property name="unitManager" value="unitManager"/>
</component>
</config>
And who will change
<property name="acousticModel" value="wsj"/>
to
<property name="acousticModel" value="dbr"/>
:p
They have also asked to copy two .mdef files to DB/etc folder.
But I found 4 .mdef files
an4.1000.mdef
an4.alltriphones.mdef
an4.ci.mdef
an4.untied.mdef
in the an4/model_architecture folder.Which are the two mentioned by them ? One is the *.ci.mdef which is the other?Hope I am right...
Do i need to rename them or is it enough to give these names in the model.props file? In model.props give
modelDefinition=filename.mdef
> Which are the two mentioned by them?
an4.1000.mdef and an4.ci.mdef
Actually you can copy only one an4.1000.mdef
> Do i need to rename them or is it enough to give these names in the model.props file?
no
> Since the training was done using the an4.dic file is it OK if i copy that .dic file to DB/dic folder?
It's ok.
Hello
I am trying to run the HelloWorld demo using the acoustic model created
But I am getting this error......What is the problem??
$java -mx256m -jar bin/HelloWorld.jar
Exception in thread "main" Property Exception component:'flatLinguist' property:'acousticModel' - mandatory property is not set!
edu.cmu.sphinx.util.props.InternalConfigurationException
at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:283)
at edu.cmu.sphinx.linguist.flat.FlatLinguist.setupAcousticModel(FlatLinguist.java:220)
at edu.cmu.sphinx.linguist.flat.FlatLinguist.newProperties(FlatLinguist.java:184)
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:421)
at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:271)
at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.newProperties(SimpleBreadthFirstSearchManager.java:139)
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:421)
at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:271)
at edu.cmu.sphinx.decoder.AbstractDecoder.newProperties(AbstractDecoder.java:52)
at edu.cmu.sphinx.decoder.Decoder.newProperties(Decoder.java:31)
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:421)
at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.java:271)
at edu.cmu.sphinx.recognizer.Recognizer.newProperties(Recognizer.java:78)
at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:421)
at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationManager.java:163)
at edu.cmu.sphinx.demo.helloworld.HelloWorld.main(HelloWorld.java:36)
hai..
before running the code I had tried
/sphinx4$ java -jar lib/DBR_8gau_13dCep_16k_40mel_140Hz_6800Hz.jar
Unable to access jarfile lib/DBR_8gau_13dCep_16k_40mel_140Hz_6800Hz.jar
I tried for all other jar files also the same message comes....
> Unable to access jarfile lib/DBR_8gau_13dCep_16k_40mel_140Hz_6800Hz.jar
There is really no such file, why do you think it will appear there?
> But I am getting this error......What is the problem??
The acoustic model jar is missing, isn't it clear? Probably you forgot to change manifest.in. Try to search this forum, this issue was discussed many times.