Menu

pocketsphinx does not create ouput file when called by windows program

Help
2017-06-13
2017-06-22
  • SrcF Questions

    SrcF Questions - 2017-06-13

    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.

     
    • Nickolay V. Shmyrev

      Call pocketsphinx dll through the API directly without spawning a process.

       
      • SrcF Questions

        SrcF Questions - 2017-06-22

        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.

         

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.