Hi!, maybe could be a silly question but I need help to config pocketsphinx.
I want to create a QT programm with PocketSphinx that can control a Radar with the voice....I follow the instruccions to download the sphinxbase and pocketsphinx. I can run the pocketsphinx with the "cmd" from windows, already add the library, and everything load like in the cmd from windows, unless the last part:
"INFO: continuous.c <307>: bin\Release\Win32\pocketsphinx_continuous.exe COMPILED ON: Jan 15 2018, AT: 14:48:08."
That part dont appear in QT. I used the "config" that appear in the tutorial.
Also I dont know how send the "-inmic yes". In the tutorial is on the command that call the continuous.exe, but i dont know how put the "-inmic yes" in the config, so when i call the "ps_init" works like in windows.
I know to some could be something silly, but i dont figure out know and I hope someone can help me.
-inmic is an option for pocketsphinx_continuous to switch between file and microphone. If you use pocketsphinx in your application and you do not need such switch with command line option, you do not need inmic option at all, you simply record the audio from the microphone and send it to recognizer. You can read pocketsphinx_continuous sources for details.
if ((ad = ad_open_dev(NULL,(int) cmd_ln_float32_r(config,"-samprate"))) == NULL)
For the moment works :D!....its not exactly the words I said, but I want to create a dictionary, to incluid just the words I want. So for that i will read about it.
Thanks for the help!!....
Pd: If in the future I need help with that....I hope you can help me :D
Last edit: Miguel Lujan 2018-01-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You do not need configuration like this in your app, you can use default vaules
For the moment works :D!....its not exactly the words I said, but I want to create a dictionary, to incluid just the words I want. So for that i will read about it.
Ok, congratulations. You might want to move speech processing to a separate thread to avoid UI blocking.
Pd: If in the future I need help with that....I hope you can help me :D
Sure, feel free to ask.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!, maybe could be a silly question but I need help to config pocketsphinx.
I want to create a QT programm with PocketSphinx that can control a Radar with the voice....I follow the instruccions to download the sphinxbase and pocketsphinx. I can run the pocketsphinx with the "cmd" from windows, already add the library, and everything load like in the cmd from windows, unless the last part:
"INFO: continuous.c <307>: bin\Release\Win32\pocketsphinx_continuous.exe COMPILED ON: Jan 15 2018, AT: 14:48:08."
That part dont appear in QT. I used the "config" that appear in the tutorial.
Also I dont know how send the "-inmic yes". In the tutorial is on the command that call the continuous.exe, but i dont know how put the "-inmic yes" in the config, so when i call the "ps_init" works like in windows.
I know to some could be something silly, but i dont figure out know and I hope someone can help me.
I add pro, h and cpp file.
-inmic
is an option for pocketsphinx_continuous to switch between file and microphone. If you use pocketsphinx in your application and you do not need such switch with command line option, you do not needinmic
option at all, you simply record the audio from the microphone and send it to recognizer. You can read pocketsphinx_continuous sources for details.https://github.com/cmusphinx/pocketsphinx/blob/master/src/programs/continuous.c#L234
Thanks for the fast answer :D
So...correct me if I'm wrong, after I send the "ps_init", I have to "recognize_from_microphone()" using :
When I make that, come this error:
ERROR: "cmd_ln.c", line 942: Unknown argument: -adcdev
Error that I fix like you said in:
https://sourceforge.net/p/cmusphinx/discussion/help/thread/98d90279/?limit=25#9025
and end the code is:
For the moment works :D!....its not exactly the words I said, but I want to create a dictionary, to incluid just the words I want. So for that i will read about it.
Thanks for the help!!....
Pd: If in the future I need help with that....I hope you can help me :D
Last edit: Miguel Lujan 2018-01-23
You do not need configuration like this in your app, you can use default vaules
Ok, congratulations. You might want to move speech processing to a separate thread to avoid UI blocking.
Sure, feel free to ask.