Yes, if the wav file has proper format - 16khz 16bit mono signed. You need to properly specify header size with -adchdr 44. There might be exceptions with wav files with different size of the header, but they are not common.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I am checking the source code of pocketsphinx_batch.
else if (cmd_ln_boolean_r(config, "-adcin")) {
If my input file is .wav file, can I set -adcin yes ?
Thank you.
Yes, if the wav file has proper format - 16khz 16bit mono signed. You need to properly specify header size with
-adchdr 44. There might be exceptions with wav files with different size of the header, but they are not common.