Giter Site home page Giter Site logo

lua-voce's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

lua-voce's Issues

Automatically handle "destroy"

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.

Add location of jvm.dll to path

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

Needs tests - the ones from lua-hapi should be a good example.

Java Initialization Under Windows

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.

xawt Java Library Issue

Problem:

require("luavoce")
error loading module 'luavoce' from file './luavoce.so':
libmawt.so: cannot open shared object file: No such file or directory

Workaround:

  1. Use export LD_LIBRARY_PATH and point to xawt

  2. Essentially do the same thing in cmake, see hash:
    1164d6b

Not a great solution currently but it does work.

Improve "init"

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.

Error while running GCAM

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.