Menu

mfcc.py

Help
lynucs
2010-01-24
2012-09-22
  • lynucs

    lynucs - 2010-01-24

    Hi,
    Is there a python script which create a mfcc file from a wav file?
    Thank you in advance
    Laurent

     
  • Nickolay V. Shmyrev

    1
    2
    3
    4
    5
    6
    7
    8
    9
    #!/usr/bin/python
    
    import os
    import sys
    
    infile = sys.argv[1]
    outfile = sys.argv[1].replace(".wav", ".mfc")
    
    os.system ("sphinx_fe -mswav yes -i " + infile + " -o " + outfile)
    
     
  • lynucs

    lynucs - 2010-02-02

    Hi,
    i did not see you reply to me. Thanks.
    i've also found from scikits package a pure python implementation of mfcc.
    Laurent

     
  • lynucs

    lynucs - 2010-02-05

    I have 2 questions:
    - the mfc file is a binary file. Is it possible to view the matrix in clear? Is there a document about the structure of file. I would like to use the mfcc matrix in a python program?
    - do you know a DTW program which can compare 2 mfcc file?

    regards,
    Laurent

     
  • Nickolay V. Shmyrev

    the mfc file is a binary file. Is it possible to view the matrix in clear?

    sphinx_cepview converts it to text

    Is there a document about the structure of file.

    4-bytes header contains integer - number of floats in a file. Then floats go
    one by one each in 4 bytes.

    I would like to use the mfcc matrix in a python program?

    I'm not sure what stops you here.

     

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.