Fix Embarrassing Problems
Actually, just one embarrassing problem - the byte-swapping code was totally confused and only worked by pure luck. And actually it didn't work in JavaScript, which is how I found the problem. Which brings me to the main purpose of this release: JavaScript!
Yes, compiling to JavaScript and running on both Node.js and "the browser" (or at least a few of them) is now totally functional. The API is very much subject to change, because I didn't write it and I don't really like it. Nonetheless, I am eternally grateful to the author of PocketSphinx.JS who came up with the idea of doing this in the first place, and who wrote the current demo. A future release, maybe the next one, will have a rewritten and "modernized" API and hopefully a more interesting demo as well.
On the Python side, the command-line interface has all its functionality complete. The major improvement under the hood is the ability to iterate over Config
objects, which also allows us to write the configuration to a JSON file. This is also an API which I don't like, and unfortunately, I did write this one. It is now less annoying than it used to be, though. I suggest no longer prefixing Config
options with dashes, and if possible just passing options to the Decoder
constructor.
A few other minor bugs were also fixed.