Menu

pocketsphinx mdef convert

Help
2011-01-12
2012-09-22
  • Berker Batur

    Berker Batur - 2011-01-12

    Hi,
    I want to use pocketsphinx_mdef_convert to convert binary acoustic model of
    pocketsphinx to text.
    The model is the one that came with pocketsphinx installation (default model-
    hub4wsj_sc_8k).
    I tried the code : $ pocketsphinx_mdef_convert -bin hub4wsj_sc_8k/mdef
    hub4wsj_sc_8k/mdef.txt

    but I get the error:
    INFO: mdef.c(520): Reading model definition: hub4wsj_sc_8k/mdef
    INFO: mdef.c(531): Found byte-order mark BMDF, assuming this is a binary mdef
    file
    Failed to read text mdef from hub4wsj_sc_8k/mdef

    Is there anyone knows what the error means and how to solve it ?

    I have also another question,
    I have searched converting sphinx3 or pocketsphinx acoustic model to HTK
    acoustic model format for a week.
    I know there are many posts in the forum, but they didn't come up with a good
    solution.
    There is 1 sourceforge project named srmc, but I could not use it on Linux
    (ubuntu)
    Is there any straightforward method to do that conversion ?

    Thanks in advance,

    Berker.

     
  • Nickolay V. Shmyrev

    $ pocketsphinx_mdef_convert -bin hub4wsj_sc_8k/mdef hub4wsj_sc_8k/mdef.txt

    -bin means "convert to bin". Use -text instead

    Is there any straightforward method to do that conversion ?

    No

     
  • Berker Batur

    Berker Batur - 2011-01-13

    Thanks a lot.

    Actually I tried that before asking, but at that point the errors came because
    of
    permission problems.

     
  • Richik Sinha Roy

    Hi! I have installed pocketsphinx 0.6.1 on my computer, but am unable to find
    the pocketsphinx_mdef_convert program. The only file I have in the /doc
    folder, pocketsphinx_mdef_convert.1, please help! I need to convert my mdef
    into mdef.txt

     
  • Nickolay V. Shmyrev

    Hello

    pocketsphinx_mdef_convert is part of the pocketsphinx package. Maybe it's some
    issue with your distribution, but you can certainly try to compile
    pocketsphinx from sources if you need it.

     

Log in to post a comment.