Questions tagged [annyang]

Annyang is a tiny javascript library that lets your visitors control your site with voice commands.

Annyang is a tiny javascript library that lets your visitors control your site with voice commands. Annyang supports multiple languages, has no dependencies, weighs just 2kb and is free to use.

40 questions
5
votes
2 answers

How to add annyang library in angular2?

I need to add annyang library in angular2. Can anyone please suggest me how to add using system.js and typescript? We have a angular 1 service. I created a annyang service the code is import {Injectable} from '@angular/core' declare let…
user1162084
  • 462
  • 1
  • 6
  • 18
5
votes
3 answers

Annyang converting speech to text

I'm trying to use annyang to convert speech into text, but I've ran into some problems. It works, but there's a few things that doesn't yet. First, I would like to know how would I be able to pass whatever the user said, into the alert function.…
frosty
  • 2,559
  • 8
  • 37
  • 73
4
votes
1 answer

Annyang addCommands

I want to make annyang smarter. So i decide to add Commands with the help of users. for reminders annyang commands are init like this : var commands = {"your speech":yourFunction} annyang.addCommands(commands); With a form I retrive what the user…
Maxime Girou
  • 1,511
  • 2
  • 16
  • 32
3
votes
0 answers

Speech recognition listen to long

I need your help I have no idea how to fix my issue. I have app writen in ionic and I use annyang to Speech Recognition to listen what user said and response for that. It's working pretty good on web - using ionic serve, but when I run it on…
foczki
  • 125
  • 8
3
votes
2 answers

How to read module vs. vanilla JS library in angular?

I'm new to service/provider/factories modules in angular. I've been using a library called annyang for 30 mins and I wanted to find the more "angular" way of using this library. Some independent on git made a moduleProvider found here:ngAnnyang. It…
Armeen Moon
  • 18,061
  • 35
  • 120
  • 233
2
votes
0 answers

How do I gain microphone access through a download while using annyang

I have a program that I'm working on that requires to gain microphone access through the browser (javascript) while using annyang and speechkitt to make a little button on the bottom corner. Though I have annyang (which is supposed to gain…
2
votes
2 answers

How to capture speech except command in annyang speech api

I am able to perform action according to commands provided in annyang speech api. But my question is how to capture speech except commands using this api. I need the same behavior that we got from google speech…
Anil Kumar
  • 100
  • 9
2
votes
0 answers

Annyang speech recognition from file

Can you use Annyang.js for speech recognition from files? To be specific, the file would contain simple, predefined commands like simple words, alphabets or digits. Essentially, what I would like to do is get the input for Annyang from an audio…
2
votes
0 answers

Disable Speech Recognition API notification on Android Chrome

If you go to a page that uses the web SpeechRecognition API, like the demo page for Annyang.js, on the Android Chrome browser, you'll notice that once the mic starts listening for speech input, it will make a notification sound just like the Google…
Rahat Ahmed
  • 2,191
  • 2
  • 30
  • 40
2
votes
1 answer

this.set is not a function

I have code like this: var ws2812 = {}; ws2812.set = function(r,g,b){ $.get( "/light?r="+r+"&g="+g+"&b="+b, function( data ) { console.log("Light set to:"+"/light?r="+r+"&g="+g+"&b="+b); }) }; ws2812.speech = function(word){ …
Robus
  • 8,067
  • 5
  • 47
  • 67
1
vote
1 answer

How Can I call 2 different function using one toggle button in vanilla javascript

I am Using annyang.js for speech-recognition which have 2 different functions, for start annyang.start() and for stop annyang.abort() Now how do i make a toggle button which will fire both of these functions? my code
ALEX1A
  • 35
  • 4
1
vote
1 answer

Annyang causes chrome ask to allow microphone before it starts

I've added [Annyang]: https://github.com/TalAter/annyang to my AngularJS app, just as shown in the demo. Problem is, that Chrome fires the pop up to allow using the microphone when the application is up, and not only when start using Annyang. Why…
Rajesh
  • 21
  • 1
  • 4
1
vote
0 answers

How to add annyang in Angular 4 using webpack

I have the same problem described in this post. My case is a bit different because I'm using webpack, instead of System.js. The project is Angular 4 and created with the lastest version of angular cli. How can I map the resource with webpack?
André Luiz
  • 6,642
  • 9
  • 55
  • 105
1
vote
1 answer

How do I change an AngularJS variable I declared in $scope using annyang speech commands?

I have a simple speech recognition app that starts and pauses a video based on speech commands. My problem is that a variable that I declare in $scope does not change when I give the pause command. The intent is for the number in the textarea to…
ep84
  • 315
  • 2
  • 17
1
vote
0 answers

Videojs code won't work on jsfiddle

I have some code that I put into a jsfiddle with the intention of asking a different question here, but I found that the code doesn't work in jsfiddle for me. Link to fiddle
1
2 3