vancegroup / lua-voce Goto Github PK
View Code? Open in Web Editor NEWLua binding to Voce
License: Boost Software License 1.0
Lua binding to Voce
License: Boost Software License 1.0
We can do this by creating a table with a custom __gc
method in its metatable that calls destroy, and putting it in the lua registry in a safe place. Then, destroy will be called automatically when the state is closed.
At runtime (when init is called), we should find the jre installation and the jvm file, and then add it to the PATH environment variable before calling Voce's init.
Needs tests - the ones from lua-hapi should be a good example.
Per the readme for voce, that's the wrong thing to do.
Upon running voce.init(...):
Error occurred during initialization of VM
Unable to load native library: Can't find dependent libraries
Setting the Windows PATH variable (just temporarily to see if it works) does not seem to fix the problem.
Problem:
require("luavoce")
error loading module 'luavoce' from file './luavoce.so':
libmawt.so: cannot open shared object file: No such file or directory
Workaround:
Use export LD_LIBRARY_PATH and point to xawt
Essentially do the same thing in cmake, see hash:
1164d6b
Not a great solution currently but it does work.
See the help and such for lua-hapi for info.
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.
This blocks any further work on lua-voce.
Hi,
I have been using GCAM for the last 3 years but recently I changed my laptop, still working on Windows. After installing all the required software such as Java 8u221 (64 bit), Microsoft visual c++, having a RAM of 16GB and having jvm.dll files at two locations (System32 and SysWow64), I am getting the following error while running the model.
Error occurred during initialization of VM
Unable to load native library: Can't find dependent libraries
Press any key to continue...
What could be the possible issue?
Thanks and regards,
Poonam
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.