Giter Site home page Giter Site logo

Comments (4)

damienlaine avatar damienlaine commented on September 13, 2024

Hello,
I can confirm that there's something fishy.
I'll try to fix that by the week-end

from webvoicesdk.

damienlaine avatar damienlaine commented on September 13, 2024

Still need some time to investigate that.
If you fancy it, it would be super-nice if you have some time for simply trying to update TFJS to the latest version and building again.

The problem certainly comes from an external dependency, as you suggest, and i can't rly figure out which one. Things are pretty constrained in the current package.json file.

I guess there's something fishy in https://github.com/linto-ai/WebVoiceSDK/blob/master/src/webvoicesdk/nodes/hotword.js#L1-L8 in the worker itself (that loads a specific version of TFJS) i guess they have rebuilt the version and changed, somehow, some bits.

I'll check all of that at one point in the future time but i'm super-booked on other subjects these upcoming weeks. Try to motivate me, i might enjoy a week-end of coding if it's enjoyable...

from webvoicesdk.

pierreclr avatar pierreclr commented on September 13, 2024

I found the problem : fixing tensorflow dependencies to 2.6.0 in package.json or increasing to 2.8.6 the ones loaded trough CDN fixed the problem. I choose to increase those loaded through CDN since it allows us to use minified tf-backend-wasm.min.js

See 593f8c9

For the future I suggest to use yarn for dependencies management to ensure versions are locked by adding yarn.lock in the repository. If you want to keep it the old way through npm we should probably remove package-lock.json from .gitignore

What do you think about that ?

For now I fixed the versions directly in package.json added the related commit to my initial PR and rebuild webVoiceSDK-linto.min.js

from webvoicesdk.

damienlaine avatar damienlaine commented on September 13, 2024

Thx for the test and for your successful contribution. I will clean-up all of this very soon.

I'm perfectly aware of the yarn.lock or package-lock and these files are mandatory in the commits accordingly to the best practices. My mistake, for some reason i ended up adding the package-lock in gitignore. Sorry for that.

Let's keep in touch for further testing of the lib, i would be very pleased to see that used in your production worflow.

from webvoicesdk.

Related Issues (8)

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.