SpeechKITT
SpeechKITT copied to clipboard
SpeechKITT.displayRecognizedSentence(true) not working
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();
@awais786327 did you got solution?
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.
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 .