cmusphinx / pocketsphinx

A small speech recognizer
Other
3.9k stars 714 forks source link

Support input files for `pocketsphinx` command line #296

Closed dhdaines closed 1 year ago

dhdaines commented 1 year ago

This adds rudimentary support for file input to the pocketsphinx command-line program, e.g.:

pocketsphinx -hmm path/to/my/model single foo.wav bar.wav baz.wav

The "command" is obligatory if file inputs are used. If no files are given it reads from standard input.

This is all very basic in the absence of a real argument parser. It also adds the "help" command which will print a help text.