pocketsphinx is a library, you can't start a library, you can only use it in
your own applications.
For testing pocketsphinx, there is pocketsphinx_batch application which is
part of the pocketsphinx package. You can find sample script
scripts/pocketsphinx_test to use it in with an audio file in the package.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a way to start pocketsphinx with an audio file? I can't seem to find
the option switch.
Thanks for any help.
pocketsphinx is a library, you can't start a library, you can only use it in
your own applications.
For testing pocketsphinx, there is pocketsphinx_batch application which is
part of the pocketsphinx package. You can find sample script
scripts/pocketsphinx_test to use it in with an audio file in the package.