juliusjs icon indicating copy to clipboard operation
juliusjs copied to clipboard

demo don't work! (https://zzmp.github.io/juliusjs)

Open tnga opened this issue 8 years ago • 4 comments

(https://zzmp.github.io/juliusjs) even after years! how to know if it work ?

tnga avatar Jun 22 '16 07:06 tnga

<!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>

wangxm345566462 avatar Jan 31 '19 11:01 wangxm345566462

(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.

khoantv avatar Jan 06 '20 07:01 khoantv

(https://zzmp.github.io/juliusjs)甚至几年后!如何知道它是否有效?

您是否成功运行了此演示?我的演示也无法正常工作。

No

wangxm345566462 avatar Jan 06 '20 10:01 wangxm345566462

https://zzmp.github.io/juliusjs)甚至几年后!如何知道它是否有效?

您是否成功运行了此演示?我的演示也无法正常工作。

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.

khoantv avatar Jan 10 '20 03:01 khoantv