I have worked several days on implementing voice recognition in my nodejs webkit app and it failed yo work.
I have tried to write a local html file demo for it and it didnt work, so I used apache and putted the demo on a host and still didnt work. Then I tried connecting to my localhost with https and it did work for my demo. The problem is that I dont know how I can get my nodejs webkit app to run in a https enviorment.
Note that I have used annyang library for my demos and copied an example from their site that should work.
Thanks in advance for the help :)
Update 1: As edwan rightfuly requested, here's a basic simple example to demonstrate my problem:
<script. src="//cdnjs.cloudflare.com/ajax/libs/annyang/2.0.0/annyang.min.js"></script>
<script>
if (annyang) {
// Let's define our first command. First the text we expect, and then the. function it should call
var commands = {
'hello': function() {
alert("you said hello");
}
};
// Add our commands to annyang
annyang.addCommands(commands);
// Start listening. You can call. this here, or attach this call to an. event, button, etc.
annyang.start();
}
</script>
If you put this code in your nodejs webkit enviorment it wont work. Also in local chrome enviorment or on a host with http. Only in https it workedfor me