juliusjs
juliusjs copied to clipboard
demo don't work! (https://zzmp.github.io/juliusjs)
(https://zzmp.github.io/juliusjs) even after years! how to know if it work ?
<!doctype html>
<html>
<head>
<title>Demo of JuliusJS</title>
<script src="julius.js"></script>
</head>
<body>
Say something:
<div id="what-you-said"></div>
Note that my vocabulary is limited for this demo.
<button onclick="initAll()">初始化</button>
<script>
function initAll(){
var julius = new Julius({
log: true
});
julius.onrecognition = function(sentence) {
console.log('Sentence: ', sentence);
document.getElementById('what-you-said').innerHTML = sentence;
}
julius.onfirstpass = function(sentence) {
console.log('First pass: ', sentence);
}
julius.onfail = function() {
// This will throw its own Error
console.error('fail');
}
// This will only log if you pass `log: true` in the options object
julius.onlog = function(log) {
console.log(log);
}
}
</script>
</body>
</html><!doctype html>
<html>
<head>
<title>Demo of JuliusJS</title>
<script src="julius.js"></script>
</head>
<body>
Say something:
<div id="what-you-said"></div>
Note that my vocabulary is limited for this demo.
<button onclick="initAll()">初始化</button>
<script>
function initAll(){
var julius = new Julius({
log: true
});
julius.onrecognition = function(sentence) {
console.log('Sentence: ', sentence);
document.getElementById('what-you-said').innerHTML = sentence;
}
julius.onfirstpass = function(sentence) {
console.log('First pass: ', sentence);
}
julius.onfail = function() {
// This will throw its own Error
console.error('fail');
}
// This will only log if you pass `log: true` in the options object
julius.onlog = function(log) {
console.log(log);
}
}
</script>
</body>
</html>
(https://zzmp.github.io/juliusjs) even after years! how to know if it work ?
Did you run this demo successfull? My demo won't work too.
(https://zzmp.github.io/juliusjs)甚至几年后!如何知道它是否有效?
您是否成功运行了此演示?我的演示也无法正常工作。
No
您是否成功运行了此演示?我的演示也无法正常工作。
No
I dit it. I don't know what's your problem. But my problem is: My browser can't get getUserMedia. So it can't get audio input. I try to run with SSL, and it works.