Menu

Models from SphinxTrain for Sphinx4

Help
xavic383
2008-02-12
2012-09-22
  • xavic383

    xavic383 - 2008-02-12

    Hi, I've trained acoustic models with SphinxTrain and now I want to use them fot Sphinx4, so I found this tutorial

    http://cmusphinx.sourceforge.net/sphinx4/doc/UsingSphinxTrainModels.html

    but there are some steps I don't fully understand so I can't get on it. I'm going to describe how I perform those steps:

    1- The first step tells I have to create a folder in sphinx4/models/acoustic and put in the files created by SphinxTrain. So I guess those are the filed contained in test.cd_cont_1000_8 (where test is the name of the data set used to train the models): means, mixture_weights, transition_matrices and variances. Futhermore, the tutorial tells something about some mdef files contained in the etc/ folder, but I don't find anyone in my etc/ folder. I find mdef files in the model_architecture folder... More files pointed by the tutorial are the filler and the dictionary (although they weren't created by SphinxTrain, they were written by myself, I include them anyway).

    2- The next step is to create the model.props file. This is content of my model.props file.

    description = test acoustic models
    modelClass = edu.cmu.sphinx.model.acoustic.test_8gau_13dCep_16k_40mel_130Hz_6800Hz.Model
    modelLoader = edu.cmu.sphinx.model.acoustic.test_8gau_13dCep_16k_40mel_130Hz_6800Hz.ModelLoader
    dataLocation = test.cd_cont_1000_8
    modelDefinition = etc/test.1000.mdef

    isBinary = true
    featureType = 1s_c_d_dd
    vectorLength = 39
    sparseForm = false

    numberFftPoints = 512
    numberFilters = 40
    gaussians = 8
    minimumFrequency = 130
    maximumFrequency = 6800
    sampleRate = 16000

    where "test" is the name of the data set used to train the models.
    So finally, the next step tells "These properties will be printed out if you run the actual JAR file that was created in step 8, for example:" so I write:

    java -jar lib/test_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar

    But I get "Error: Unable to access jarfile lib/test_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar"

    So I don't know what is wrong... and it's driving me crazy !!!

    Any idea about what could be the possible mistakes ?

    Thanks !!

     
    • Nickolay V. Shmyrev

      There was no reason to start another thread on the same topic, please, avoid this in the future.

      > The first step tells I have to create a folder in sphinx4/models/acoustic and put in the files created by SphinxTrain. So I guess those are the filed contained in test.cd_cont_1000_8 (where test is the name of the data set used to train the models): means, mixture_weights, transition_matrices and variances. Futhermore, the tutorial tells something about some mdef files contained in the etc/ folder, but I don't find anyone in my etc/ folder. I find mdef files in the model_architecture folder... More files pointed by the tutorial are the filler and the dictionary (although they weren't created by SphinxTrain, they were written by myself, I include them anyway).

      Tutorial is not quite correct here, but it just describes the files, not their layout in sphinxtrain folder. Feel free to submit correction.

      >But I get "Error: Unable to access jarfile lib/test_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar"

      Please read tutorial more carefully: "These properties will be printed out if you run the actual JAR file that was created in step 8, for example". You should check the properties only after you'll finish step 8. I suppose the phrase must be moved there too.

      So actually don't think that tutorial is free from mistakes and feel free to propose your corrections.

       
    • xavic383

      xavic383 - 2008-02-13

      Step 9 tells I have to specify the acoustic model in my Sphinx4 configuration file but, where is this file ?

       
      • Nickolay V. Shmyrev

        Inside every demo sources and in demo jars there are xml file called something like config.xml or config_helloworld.xml. It's the file you are looking at.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.