I am in the process of migrating pocketsphinx python code over to C++. I am therefor using the pocketsphinx api.
However, I do not see how to transform the calls in python over to equivalant C++ code.
Here is the heart of what is happening in python :
cmd_forced_align = [pocketsphinx_cmd, '-hmm', acmod, '-infile', tmp_user.path("audiofile.wav"), "-jsgf", tmp_user.path("audiofile-forcing.jspf"), "-dict", phoneme_dict, "-backtrace", "yes", "-fsgusefiller", "no", "-wbeam", "{}".format(wbeam[niter]), "-beam", "{}".format(beam[niter]), "-remove_noise", "no" ] result = subprocess.run(cmd_forced_align, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) recognized_phoneset = result.stdout
I have followed the brief instructions in https://cmusphinx.github.io/wiki/tutorialpocketsphinx/#full-code-listing, but cannot see how I can reproduce the python type behaviour.
Should I be using a completly different technique ? If so, are there any coding examples ?
Log in to post a comment.
I am in the process of migrating pocketsphinx python code over to C++.
I am therefor using the pocketsphinx api.
However, I do not see how to transform the calls in python over to equivalant C++ code.
Here is the heart of what is happening in python :
I have followed the brief instructions in https://cmusphinx.github.io/wiki/tutorialpocketsphinx/#full-code-listing, but cannot see how I can reproduce the python type behaviour.
Should I be using a completly different technique ?
If so, are there any coding examples ?
Last edit: Simon Giddings 2020-08-14