vance-group/lua-voce — Issue #2: Improve "init"
Author: rpavlik
Created: 2011-12-14 19:45:36+00:00
State: open

There should be a wrapper function for init so that I can do the following

```
voce.init{synthesis = true, recognition = true, grammar = "/home/rpavlik/mygrammar.gram"}
```

(A c++ function can take in a `luabind::object` to accept a table)

Leaving out any of those arguments would result in defaults:
synthesis and recognition default to false
grammar, if not specified, disables recognition. (pass empty strings) If recognition was explicitly asked for, throw a lua error.
If grammar is specified, split it up: path to file goes as the grammar path, just the filename alone has `.gram` extension removed (throw error if doesn't end in `.gram`) and then used as grammar name.
JAR files should be found in a sibling directory `voce` of the plugin - use SearchPath to look through lua's `package.cpath` for it.