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

SpeechKITT.displayRecognizedSentence(true) not working #42

Open
mohd7469 opened this issue Mar 3, 2018 · 3 comments
Open

SpeechKITT.displayRecognizedSentence(true) not working #42

mohd7469 opened this issue Mar 3, 2018 · 3 comments

Comments

@mohd7469
Copy link

mohd7469 commented Mar 3, 2018

First of all thanks for this wonderful project i have something which i want to use, SpeechKITT.displayRecognizedSentence(true) not previewing the last sentence i spoken i used speechkitt.min.js github link instead of cdn but both never work for me this is my code

var commands = {
  'hello': function() { alert('Hello world!'); }
};

// Add our commands to annyang
annyang.addCommands(commands);

// Tell KITT to use annyang
SpeechKITT.annyang();

// Stylesheet for KITT to use
SpeechKITT.setStylesheet('https://cdnjs.cloudflare.com/ajax/libs/SpeechKITT/1.0.0/themes/flat.css');

SpeechKITT.setInstructionsText('Some commands to try…');

SpeechKITT.setSampleCommands(['say Hello, Ok google etc..']);

SpeechKITT.displayRecognizedSentence(true);

// When start
SpeechKITT.setStartCommand(function() {
  console.info('Speech Recognition Started ______________________________');
  annyang.start();
});

// When abort
SpeechKITT.setAbortCommand(function() {
  console.info('Stopping ............................');
  annyang.abort();
});

// Render KITT's interface
SpeechKITT.vroom();
@sivakumarkoduru
Copy link

@awais786327 did you got solution?

@sivakumarkoduru
Copy link

this is some css issue. its showing in the dev tab with display:none.

annyang.addCallback('result', function(phrases) {
var ele = document.getElementById("skitt-listening-text__recognized-sentence");
if(ele){
ele.style.display ='';
}
}

but still it is not working.

@mohd7469
Copy link
Author

mohd7469 commented May 29, 2020 via email

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

2 participants