[Sphinx 4] Configuration XML
Bonjour,
je suis en projet, nous devons créer un petit logiciel de reconnaissance vocale en utilisant la librairie sphinx 4.
Nous désirons changer la configuration pour avoir une reconnaissance vocale en français.
Les fichiers pour la reconnaissance vocale en français sont ceux cité dans les liens ci dessous (lium_french_f0).
Notre problème vient de la configuration xml, j'ai utilisé une réponse sur un forum.
Nous avons mis notre répertoire qui contient les fichiers pour le français ( /french )dans le projet, pourtant lors de l'exécution nous avons une erreur de chemin.
Voici l'erreur que j'obtiens :
Citation:
Exception in thread "main" Property exception component:'sphinx3Loader' property:'location' - Can't locate resource:/french
Et voici le morceau de code xml qui pose problème :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
<!-- ******************************************************** -->
<!-- The Dictionary configuration -->
<!-- ******************************************************** -->
<component name="trigramModel" type="edu.cmu.sphinx.linguist.language.ngram.large.LargeTrigramModel">
<property name="unigramWeight" value="0.7"/>
<property name="maxDepth" value="3"/>
<property name="logMath" value="logMath"/>
<property name="dictionary" value="dictionary"/>
<property name="location" value="/french/dict/french3g62K.lm.dmp"/>
</component>
<component name="dictionary"
type="edu.cmu.sphinx.linguist.dictionary.FastDictionary">
<property name="dictionaryPath" value="resource:/french/dict/frenchWords62K.dic"/>
<property name="fillerPath" value="resource:/french/noisedict"/>
<property name="addSilEndingPronunciation" value="false"/>
<property name="allowMissingWords" value="false"/>
<property name="unitManager" value="unitManager"/>
</component>
<!-- ******************************************************** -->
<!-- The acoustic model configuration -->
<!-- ******************************************************** -->
<component name="sphinx3Loader"
type="edu.cmu.sphinx.linguist.acoustic.tiedstate.Sphinx3Loader">
<property name="logMath" value="logMath"/>
<property name="unitManager" value="unitManager"/>
<property name="location" value="resource:/french" />
</component>
<component name="acousticModel" type="edu.cmu.sphinx.linguist.acoustic.tiedstate.TiedStateAcousticModel">
<property name="loader" value="sphinx3Loader"/>
<property name="unitManager" value="unitManager"/>
</component>. |
Je ne comprends pas pourquoi il n'arrive pas à trouver mon repertoire /french .
Nous avons aussi essayé ce tutoriel sur ce site : http://code.google.com/p/voicecmdr/w...eRecognitionFR
nous avons juste changé le morceau
Code:
1 2
|
<property name="location" value="resource:/french" /> |
par les valeurs données dans le tutoriel
Code:
1 2 3
|
<property name="dataLocation" value="/french/"/>
<property name="modelDefinition" value="/french/mdef"/> |
Cependant l'execution ne fonctionne pas non plus car il semblerait que la propriété location soit obligatoire.
Si quelqu'un a déjà réussi à configurer sphinx en français ou comprendre ou est notre erreur, pouvez-vous nous venir en aide ?