Comments (4)
Hello,
I can confirm that there's something fishy.
I'll try to fix that by the week-end
from webvoicesdk.
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.
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.
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)
- Recorder is not working on safari HOT 1
- Recorder on mobile imply a jerky wav output HOT 2
- Calling mic.stop() is not working once hotword has been spotted HOT 1
- parcelRequire is not defined in Electron build HOT 1
- Dependency update broke the library HOT 1
- How to use it in react js , with custom wake word? HOT 4
- Needs an AGPL warning at the top of the documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webvoicesdk.