SpeechKITT icon indicating copy to clipboard operation
SpeechKITT copied to clipboard

SpeechKITT.displayRecognizedSentence(true) not working

Open mohd7469 opened this issue 6 years ago • 3 comments

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();

mohd7469 avatar Mar 03 '18 12:03 mohd7469

@awais786327 did you got solution?

sivakumarkoduru avatar May 29 '20 04:05 sivakumarkoduru

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.

sivakumarkoduru avatar May 29 '20 06:05 sivakumarkoduru

I quit a bit year ago 😐

On Fri, 29 May 2020, 11:14 am sivakumarkoduru, [email protected] wrote:

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.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TalAter/SpeechKITT/issues/42#issuecomment-635781928, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAHPPET2NN5QPEM4QDEUJLRT5HEZANCNFSM4ETLS2XA .

mohd7469 avatar May 29 '20 13:05 mohd7469