pocketsphinx_continuous fails to create ouput file if called by a c++ windows console program which uses the createprocess function to call pocketsphinx.
is entered directly in windows command prompt, output file is generated successfully.
but if the above line is saved as string and sent through createprocess to call pocketsphinx from program, the results will be printed in console window, but output file does not appear after pocketsphinx has finished running.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i managed to get what i was trying to do to work. as for your suggestion of using api, that was what i originally tried to do but couldn't figure how to get it right. i apologize for lacking a professional level of in-depth knowledge in the field of programming, but could you provide some more detailed instructions on how to go about using the api, or point to where such info could be found? the instructions provided by the sphinx tutorial is pretty vague and is for linux systems. i am using codeblocks ide under windows. any help would be highly appreciated. thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
pocketsphinx_continuous fails to create ouput file if called by a c++ windows console program which uses the createprocess function to call pocketsphinx.
example:
if this
pocketsphinx_continuous.exe -infile "[dirpath]\audiofile.wav" -hmm "C:\sphinx\pocketsphinx\model\en-us\en-us" -lm "C:\sphinx\pocketsphinx\model\en-us\en-us.lm.bin" -dict "C:\sphinx\pocketsphinx\model\en-us\cmudict-en-us.dict" -time yes>"[dirpath]\output.txt"
is entered directly in windows command prompt, output file is generated successfully.
but if the above line is saved as string and sent through createprocess to call pocketsphinx from program, the results will be printed in console window, but output file does not appear after pocketsphinx has finished running.
Call pocketsphinx dll through the API directly without spawning a process.
i managed to get what i was trying to do to work. as for your suggestion of using api, that was what i originally tried to do but couldn't figure how to get it right. i apologize for lacking a professional level of in-depth knowledge in the field of programming, but could you provide some more detailed instructions on how to go about using the api, or point to where such info could be found? the instructions provided by the sphinx tutorial is pretty vague and is for linux systems. i am using codeblocks ide under windows. any help would be highly appreciated. thanks in advance.