cmusphinx / pocketsphinx

A small speech recognizer
Other
3.93k stars 717 forks source link

Save and load config file (format) for decoder #289

Closed lenzo-ka closed 2 years ago

lenzo-ka commented 2 years ago

It would be a nice piece of sugar to be able to load and write configurations from the API (and/or cli args). This would make it easy to re-run things with the same arguments (replicating results and usinga setup on new items), and also open it up to editing the config file to change startup params. Could also potentially contain adapted cmn parameters.

lenzo-ka commented 2 years ago

It would be super to have a verbose save that actually includes the values for all parameters, rather than just the ones that are "set" (or differ from defaults).

dhdaines commented 2 years ago

Yes, this is a good idea and I will do it. Possibly just the "argfile" format that is already supported (but not for saving) even though something like YAML would obviously be a lot nicer.

dhdaines commented 2 years ago

Implemented in #295 with ps_config_serialize_json() - may need a bit of tweaking, currently it is not saving string parameters that are NULL but I think it should save them since that might not be the default value