hello, i know its a dummy question, but I do not arrive to make work sphinx4 with the french language deposit.
I have found laurent71 message on this forum, wich helps a lot to make a config file ( as follow) . But I m not at all initiate to java . Where can I found a complete sphinx4.jar with the sphinx3model classes included ?
My try to compile stop trying to use ant. without success. Any kindly answer would be great !
here is the message of laurent 71:
succeeded into using the acoustic model from Le Man's University thanks to the help of Peter. I will try and help you now...
First, you have to check-out and build a recent version of Sphinx-4, for the zip-file on SourceForge does not contain the necessary classes.
Second, you have to download the archive containing the acoustic model (200+ MiB, I think).
Finally, you have to build your XML config-file, or simpler, to modify an existing one. I modified the one from HelloWorld example :
Err... And yes... Also, I had to modify edu.cmu.sphinx.model.acoustic.sphinx3.ModelLoader, adding to "public void newProperties(PropertySheet ps)" the first line :
dataDir = "D:";
This addition was necessary, because it always looked for the properties file in the location "null", since this location was initialized after being used.
I know it is not so clean, but I have no alternative to propose. If anyone has suggestions.....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello, i know its a dummy question, but I do not arrive to make work sphinx4 with the french language deposit.
I have found laurent71 message on this forum, wich helps a lot to make a config file ( as follow) . But I m not at all initiate to java . Where can I found a complete sphinx4.jar with the sphinx3model classes included ?
My try to compile stop trying to use ant. without success. Any kindly answer would be great !
here is the message of laurent 71:
succeeded into using the acoustic model from Le Man's University thanks to the help of Peter. I will try and help you now...
First, you have to check-out and build a recent version of Sphinx-4, for the zip-file on SourceForge does not contain the necessary classes.
Second, you have to download the archive containing the acoustic model (200+ MiB, I think).
Finally, you have to build your XML config-file, or simpler, to modify an existing one. I modified the one from HelloWorld example :
<component name="dictionary"
type="edu.cmu.sphinx.linguist.dictionary.FastDictionary">
<property name="dictionaryPath" value="/Parole/french_f0/etc/frenchWords62K.dic" />
<property name="fillerPath" value="/Parole/french_f0/etc/frenchFillers.dic"/>
<property name="addSilEndingPronunciation" value="false"/>
<property name="allowMissingWords" value="false"/>
<property name="unitManager" value="unitManager"/>
</component>
<component name="wsj" type="edu.cmu.sphinx.model.acoustic.sphinx3.Model">
<property name="loader" value="wsjLoader"/>
<property name="unitManager" value="unitManager"/>
</component>
<component name="wsjLoader" type="edu.cmu.sphinx.model.acoustic.sphinx3.ModelLoader">
<property name="logMath" value="logMath"/>
<property name="unitManager" value="unitManager"/>
<property name="propertiesFile" value="/Parole/french_f0/etc/am.props"/>
<property name="dataLocation" value="/Parole/french_f0/model_parameters\french_f0.cd_cont_5725_22"/>
<property name="modelDefinition" value="/Parole/french_f0/model_architecture/french_f0.5725.mdef"/>
</component>
Err... And yes... Also, I had to modify edu.cmu.sphinx.model.acoustic.sphinx3.ModelLoader, adding to "public void newProperties(PropertySheet ps)" the first line :
dataDir = "D:";
This addition was necessary, because it always looked for the properties file in the location "null", since this location was initialized after being used.
I know it is not so clean, but I have no alternative to propose. If anyone has suggestions.....