Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tnga opened this issue Jun 22, 2016 · 4 comments
Open

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

tnga opened this issue Jun 22, 2016 · 4 comments

Comments

@tnga
Copy link

tnga commented Jun 22, 2016

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

@tnga tnga changed the title demo don't work! demo don't work! (https://zzmp.github.io/juliusjs) Jun 22, 2016
@wangxm345566462
Copy link

wangxm345566462 commented Jan 31, 2019

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

@khoantv
Copy link

khoantv commented Jan 6, 2020

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

@wangxm345566462
Copy link

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

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

No

@khoantv
Copy link

khoantv commented Jan 10, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants