I want to run the "pocketsphinx_continuous.exe" program which is written in C language from my WPF application. Currently I run this using the command prompt. pocketsphinx_continuous.exe requires parameters.
The command will be something like this. Open cmd, go to the folder where "pocketsphinx_continuous.exe" exists and run,
pocketsphinx_continuous.exe -infile test\data\goforward.raw -hmm model\en-us\en-us -lm model\en-us\en-us.lm.bin -dict model\en-us\cmudict-en-us.dict
The program prints a string in command prompt. Instead of this I want to get this string to my WPF application.
Say, for a button click I want to run the above program and get the resulting string to a textbox in the same window. Running the C program should happen in the background.
How should I do this? Do I have to write a service between the C and WPF applications?