I am attempting to transcribe a file that came with the sphinx4 release using the pocketsphinx_batch.exe that is contained in the pocketsphinx-0.8-win32 release under windows 7. I am supplying the appropriate paths and control files, but no matter what format of wav file I throw at it, I get the same error:
ERROR: "batch.c", line 206: File length mismatch: 0x52494646 != 0x103ad, maybe it's not MFCC file
ERROR: "batch.c", line 423: Failed to read MFCC from the file 'C:\Users\jxx\Downloads\pocketsphinx-0.8-win32\bin\Release/10001-90210-01803.wav'
I am sure that I am missing something simple, but I can't find any kind of documentation on the error, nor the format to which it refers. Anyone have any advice? Thanks in advance for your help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You probably did not set '-adchdr' and '-adcin' as arguments in pocketsphinx_batch. Their value be default are not working with wav file. It should be something like,
pocketsphinx_batch -adcin yes -adchdr 44 ...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am attempting to transcribe a file that came with the sphinx4 release using the pocketsphinx_batch.exe that is contained in the pocketsphinx-0.8-win32 release under windows 7. I am supplying the appropriate paths and control files, but no matter what format of wav file I throw at it, I get the same error:
ERROR: "batch.c", line 206: File length mismatch: 0x52494646 != 0x103ad, maybe it's not MFCC file
ERROR: "batch.c", line 423: Failed to read MFCC from the file 'C:\Users\jxx\Downloads\pocketsphinx-0.8-win32\bin\Release/10001-90210-01803.wav'
I am sure that I am missing something simple, but I can't find any kind of documentation on the error, nor the format to which it refers. Anyone have any advice? Thanks in advance for your help.
What exactly is the command line you are using and what is the full output of the tool?
To transcribe the file you need to use pocketsphinx_continuous, not pocketsphinx_batch:
You probably did not set '-adchdr' and '-adcin' as arguments in pocketsphinx_batch. Their value be default are not working with wav file. It should be something like,
pocketsphinx_batch -adcin yes -adchdr 44 ...
Thank you Jake it is working for me. :-)