Code Monkey home page Code Monkey logo

Comments (4)

syl22-00 avatar syl22-00 commented on September 13, 2024

This question has been asked several time in github tickets (such as #3).

This is best answered by developers of pocketsphinx, you can reach them on http://cmusphinx.org or on #cmusphinx on IRC.

from pocketsphinx.js.

pramodsum avatar pramodsum commented on September 13, 2024

I'm having trouble with compiling pocketsphinx.js with my modified psRecognizer.cpp and psRecognizer.h.

I added some methods to the recognizer class, however, when i'm compiling pocketsphinx.js using make, my added methods aren't available anymore. I think i'm messing up something fairly basic. I'm using just the cmake command without specifying any acoustic model or language model.

$ cmake -DEMSCRIPTEN=1 -DCMAKE_TOOLCHAIN_FILE=path_to_emscripten/cmake/Modules/Platform/Emscripten.cmake
$ make

Even if I wanted to add a very simple method such as shown below to access a private variable I added in psRecognizer.h. I'm not able to use that method in recognizer.js after compiling the pocketsphinx.js

int32 Recognizer::getHypAccuracy() {
    return accuracy;
 }

Any help would be appreciated! Thanks!

from pocketsphinx.js.

syl22-00 avatar syl22-00 commented on September 13, 2024

You need to register your new method to embind, see the lower part of psRecognizer.h.

from pocketsphinx.js.

pramodsum avatar pramodsum commented on September 13, 2024

thanks!

from pocketsphinx.js.

Related Issues (20)

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.