zzmp / juliusjs Goto Github PK
View Code? Open in Web Editor NEWA speech recognition library for the web
Home Page: https://zzmp.github.io/juliusjs
License: Other
A speech recognition library for the web
Home Page: https://zzmp.github.io/juliusjs
License: Other
I want to use this library with "Julius Japanese Dictation-kit" (https://github.com/julius-speech/dictation-kit). But, Dictation-kit using bccwj.60k.pdp.htkdic, bccwj.60k.bingram, bccwj.60k.htkdic instead of .dfa and .dict files. I don't know how to use them in this library.
There's any tutorial for me? Please!
Iโm really grateful for your help.
Is there a working example of loading a custom vocabulary?
I've tried, but whenever I pass the location of the dfa and dict files to the Julius constructor I get the error message below. Even passing in the same sample files that the system defaults to gives the same error message. Please note that the error is different than not finding the file which gives an XMLHttpRequest exception instead, so the system is finding the file.
julius = new Julius(); //works
julius = new Julius('voxforge/sample.dfa','voxforge/sample.dict'); //fails
julius = new Julius('< full path >/voxforge/sample.dfa','< full path >/voxforge/sample.dict'); //fails
Error: Couldn't load file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/voxforge/sample.dfa. Status: 0 : Error
at stackTrace (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:1235:15)
at Object.FS.handleFSError (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:2650:62)
at _read (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:5828:12)
at ew (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:7641:99089)
at kw (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:7641:105411)
at iw (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:7641:103573)
at dw (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:7641:98074)
at hw (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:7641:101813)
at st (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:7625:89226)
at Ft (file:///Users/brian/software/src/static/plugin_components/juliusjs/dist/recognizer.js:7625:102550) VM146:93recognizer.onmessage
How to make the grammar lib?I want to make it support the i18n.
Hi,
is there a way to create grammars/dictionaries at runtime?
How far away is "soon"?
(https://zzmp.github.io/juliusjs) even after years! how to know if it work ?
Pipe audio in through an OfflineAudioContext
to have standardized tests.
I am guessing there is probably no support for international grammar even for a set of 4 to 5k words in say arabic or german ?
Hi,
I use custom acoustic (.am.bin) and language (.lm.bin) models in Portuguese for Julius. How can I change the voxforge default acoustic and language models in juliusjs so that I can use my own portuguese grammar? What is the role of the file recognizer.data in julius.js?
Best regards,
Fabio.
Hi!
Is it possible, to pause, resume or abort the Listening?
I don't want the mic to listen contentiously, but only on command.
Compared to the Web Speech API I am basically looking for something like
var recognition = new webkitSpeechRecognition();
recognition.continuous = false;
and then I am manually calling
recognition.start();
is this possibile with JuliusJS?
Best regards
The presence of the worker makes it nearly impossible to distribute as a single file - need to investigate possibilities to improve this.
One possibility is workerify
, as the worker will need access to additional files.
04:38:13.805 navigator.mozGetUserMedia has been replaced by navigator.mediaDevices.getUserMedia julius.js:37:16
04:38:28.033 First pass: <s> GET juliusjs:23:15
04:38:31.736 First pass: <s> DIAL FOUR ONE TWO </s> juliusjs:23:15
04:38:31.833 Sentence: DIAL FOUR ONE TWO juliusjs:19:15
04:38:34.883 First pass: <s> GET juliusjs:23:15
04:38:41.242 First pass: <s> PHONE KEN </s> juliusjs:23:15
04:38:41.376 Sentence: PHONE KEN juliusjs:19:15
04:38:41.861 First pass: <s> GET juliusjs:23:15
04:38:54.431 First pass: <s> DIAL OH </s> juliusjs:23:15
04:38:54.653 Sentence: DIAL OH juliusjs:19:15
04:39:00.726 First pass: <s> DIAL OH </s> juliusjs:23:15
04:39:00.894 Sentence: DIAL TWO juliusjs:19:15
04:39:06.012 First pass: <s> DIAL ONE </s> juliusjs:23:15
04:39:06.026 Sentence: DIAL ONE juliusjs:19:15
04:39:08.606 First pass: <s> GET juliusjs:23:15
04:39:16.799 First pass: <s> CALL ME KENNETH juliusjs:23:15
04:39:16.816 Sentence: DIAL EIGHT ONE juliusjs:19:15
04:39:26.178 First pass: <s> CALL ME KENNETH </s> juliusjs:23:15
04:39:26.292 Sentence: CALL ME KENNETH juliusjs:19:15
04:39:27.402 First pass: <s> GET juliusjs:23:15
04:39:30.432 First pass: <s> CALL ME KENNETH juliusjs:23:15
04:39:30.439 Sentence: CALL ME KENNETH juliusjs:19:15
04:39:33.035 First pass: <s> CALL ME KENNETH juliusjs:23:15
04:39:33.040 Sentence: CALL ME KENNETH juliusjs:19:15
04:39:36.007 First pass: <s> GET ME KENNETH juliusjs:23:15
04:39:36.013 Sentence: GET ME YOUNG juliusjs:19:15
04:39:37.770 First pass: <s> GET juliusjs:23:15
04:39:43.440 Sentence: PHONE YOUNG juliusjs:19:15
04:39:46.412 First pass: <s> DIAL OH EIGHT FIVE SEVEN FOUR FOUR OH OH FIVE juliusjs:23:15
04:39:46.439 Sentence: DIAL EIGHT FIVE SEVEN FOUR FOUR OH juliusjs:19:15
04:39:59.222 First pass: <s> GET juliusjs:23:15
04:39:59.433 First pass: <s> DIAL ONE TWO FIVE juliusjs:23:15
04:39:59.450 Sentence: DIAL ONE TWO juliusjs:19:15
04:40:00.440 First pass: <s> GET juliusjs:23:15
04:40:05.912 First pass: <s> DIAL EIGHT SEVEN TWO OH ONE TWO OH FIVE juliusjs:23:15
04:40:05.926 Sentence: DIAL TWO TWO SEVEN TWO OH OH ONE TWO juliusjs:19:15
04:40:06.747 First pass: <s> GET juliusjs:23:15
04:40:06.749 Sentence: GET KEN juliusjs:19:15
04:40:11.917 First pass: <s> GET KEN </s> juliusjs:23:15
04:40:11.918 Sentence: GET KEN juliusjs:19:15
04:40:12.784 First pass: <s> GET juliusjs:23:15
04:40:12.786 Sentence: DIAL OH juliusjs:19:15
04:40:14.830 First pass: <s> GET juliusjs:23:15
04:40:14.832 Sentence: DIAL OH juliusjs:19:15
04:40:16.128 First pass: <s> GET juliusjs:23:15
04:40:16.132 Sentence: DIAL EIGHT juliusjs:19:15
04:40:17.894 First pass: <s> CALL STEVE juliusjs:23:15
04:40:17.898 Sentence: DIAL OH OH juliusjs:19:15
04:40:19.380 First pass: <s> GET juliusjs:23:15
04:40:19.381 Sentence: GET KEN juliusjs:19:15
04:40:21.143 First pass: <s> CALL STEVE juliusjs:23:15
04:40:21.146 Sentence: CALL STEVE juliusjs:19:15
04:40:24.397 First pass: <s> DIAL TWO SEVEN TWO EIGHT SEVEN FIVE juliusjs:23:15
04:40:24.406 Sentence: DIAL TWO OH EIGHT EIGHT SEVEN juliusjs:19:15
04:40:29.972 First pass: <s> GET juliusjs:23:15
04:40:29.973 Sentence: GET YOUNG juliusjs:19:15
04:40:37.034 First pass: <s> DIAL EIGHT </s> juliusjs:23:15
04:40:37.047 Sentence: DIAL EIGHT juliusjs:19:15
04:40:39.723 First pass: <s> GET juliusjs:23:15
04:40:39.727 Sentence: PHONE YOUNG juliusjs:19:15
04:40:43.436 First pass: <s> CALL KENNETH juliusjs:23:15
04:40:43.439 Sentence: PHONE YOUNG juliusjs:19:15
04:40:45.714 First pass: <s> CALL STEVEN YOUNG </s> juliusjs:23:15
04:40:45.719 Sentence: CALL STEVEN YOUNG juliusjs:19:15
04:40:47.429 First pass: <s> GET KENNETH juliusjs:23:15
04:40:47.432 Sentence: GET KEN juliusjs:19:15
04:40:49.288 First pass: <s> CALL KENNETH </s> juliusjs:23:15
04:40:49.292 Sentence: CALL KENNETH juliusjs:19:15
04:40:51.423 First pass: <s> GET ME KENNETH juliusjs:23:15
04:40:51.429 Sentence: DIAL TWO NINE SEVEN juliusjs:19:15
04:41:00.632 First pass: <s> CALL STEVEN YOUNG </s> juliusjs:23:15
04:41:00.636 Sentence: CALL STEVEN YOUNG juliusjs:19:15
04:41:00.761 First pass: <s> CALL STEVEN YOUNG </s> juliusjs:23:15
04:41:00.766 Sentence: CALL STEVEN YOUNG juliusjs:19:15
04:41:21.238 First pass: <s> PHONE KENNETH juliusjs:23:15
04:41:21.241 Sentence: PHONE KENNETH juliusjs:19:15
04:41:23.282 First pass: <s> GET ME KENNETH juliusjs:23:15
04:41:23.287 Sentence: GET ME MACLEAN juliusjs:19:15
04:41:33.126 First pass: <s> GET MACLEAN </s> juliusjs:23:15
04:41:33.130 Sentence: GET MACLEAN juliusjs:19:15
04:41:39.721 First pass: <s> GET juliusjs:23:15
04:41:39.723 Sentence: PHONE KEN juliusjs:19:15
04:41:42.135 First pass: <s> GET juliusjs:23:15
04:41:42.139 Sentence: DIAL EIGHT juliusjs:19:15
04:41:45.860 First pass: <s> GET juliusjs:23:15
04:41:45.861 Sentence: DIAL FIVE juliusjs:19:15
04:41:48.174 First pass: <s> GET juliusjs:23:15
04:41:48.176 Sentence: DIAL FIVE juliusjs:19:15
04:41:50.680 First pass: <s> PHONE ME KENNETH juliusjs:23:15
04:41:50.683 Sentence: DIAL FIVE juliusjs:19:15
04:41:52.074 First pass: <s> GET STEVE juliusjs:23:15
04:41:57.277 First pass: <s> GET juliusjs:23:15
04:41:57.279 Sentence: GET KEN juliusjs:19:15
04:42:02.426 First pass: <s> GET STEVE juliusjs:23:15
04:42:02.428 Sentence: PHONE KEN juliusjs:19:15
04:42:03.126 First pass: <s> PHONE KENNETH juliusjs:23:15
04:42:03.127 Sentence: PHONE KEN juliusjs:19:15
04:42:06.006 First pass: <s> GET juliusjs:23:15
04:42:06.008 Sentence: GET KEN juliusjs:19:15
04:42:07.863 First pass: <s> GET juliusjs:23:15
04:42:07.865 Sentence: GET KEN juliusjs:19:15
04:42:18.824 First pass: <s> GET juliusjs:23:15
04:42:18.828 Sentence: GET KEN juliusjs:19:15
04:42:24.678 First pass: <s> GET juliusjs:23:15
04:42:24.690 Sentence: DIAL TWO juliusjs:19:15
04:42:41.062 First pass: <s> DIAL ZERO(2) SEVEN TWO EIGHT TWO OH FIVE OH TWO TWO TWO FIVE juliusjs:23:15
04:42:41.085 Sentence: DIAL ZERO(2) SEVEN EIGHT TWO OH FIVE EIGHT TWO TWO juliusjs:19:15
04:42:41.184 First pass: <s> GET ME KENNETH juliusjs:23:15
04:42:41.192 Sentence: DIAL NINE TWO FOUR OH OH EIGHT juliusjs:19:15
04:42:41.319 First pass: <s> DIAL NINE TWO FIVE TWO FIVE TWO FIVE juliusjs:23:15
04:42:41.327 Sentence: DIAL NINE TWO FIVE TWO FIVE juliusjs:19:15
04:42:41.595 First pass: <s> DIAL TWO TWO SIX FOUR OH SEVEN TWO FIVE TWO OH TWO TWO TWO TWO FIVE juliusjs:23:15
04:42:41.635 Sentence: DIAL TWO TWO SIX FOUR OH SEVEN TWO FIVE TWO OH THREE TWO TWO TWO juliusjs:19:15
04:42:42.137 First pass: <s> DIAL OH </s> juliusjs:23:15
04:42:42.141 Sentence: DIAL OH OH juliusjs:19:15
04:42:44.646 First pass: <s> DIAL NINE FOUR OH FIVE juliusjs:23:15
04:42:44.652 Sentence: DIAL NINE FOUR OH juliusjs:19:15
04:42:47.432 First pass: <s> DIAL FOUR FIVE TWO TWO FIVE ONE EIGHT SEVEN FIVE juliusjs:23:15
04:42:47.446 Sentence: DIAL FOUR FIVE TWO TWO FIVE ONE EIGHT SEVEN juliusjs:19:15
May I ask if this is a reasonable presentation of the current state of this project? To clarify this is at 0% accuracy. Is it possessed?
How can I contribute to improving usability and accuracy?
Who is Kenneth? Maybe he can help.
I said "my name is", "testing testing", "demo" in clear english.
If this is really serverless, then it would be neat to have a demo page. I can't get it to work, but I tried this: iffy@72b6a99
What would it take to have a static page example?
webAudioContext is there but not AudioContext, could the constructor code be replaced with this:
var AudioContext = window.AudioContext || window.webkitAudioContext;
audio.contex = new AudioContext();
worker.js
is logging
ERROR: Error in loading model
I've been able to successfully run the demo with the sample data, but sometimes I get that error and I was wondering if it's something you're familiar with before I start troubleshooting the workers.
Thanks a bunch
During the page loading ,
in chrome console it is showing
julius.js:22 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
problem is here
var initializeAudio = function(audio) {
audio.context = new (window.AudioContext || window.webkitAudioContext)();
audio.processor = audio.context.createScriptProcessor(4096, 1, 1);
};
Please somebody tell me how to solve this..
So so sorry.
FYI: I'm working on this now, as it appears to be a blocker to using the library. I'm not sure when this stopped working, but I'll try to have it up again ASAP.
Replace .onrecognition
, etc. with a more full-fledged eventing system:
Currently considering browserify
, with node's EventEmitter
, or the pwn
library. Both require refactoring the build system to reduce the amount of files necessary for dist - see #2.
Luckily enough github offers TLS endpoints for *.github.io
therefore we can use https://zzmp.github.io/juliusjs/
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.