annyang | : speech_balloon : Speech recognition for your site | Speech library

 by   TalAter JavaScript Version: 2.6.1 License: MIT

kandi X-RAY | annyang Summary

kandi X-RAY | annyang Summary

annyang is a JavaScript library typically used in Artificial Intelligence, Speech applications. annyang has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can install using 'npm i annyang' or download it from GitHub, npm.

A tiny JavaScript Speech Recognition library that lets your users control your site with voice commands. annyang has no dependencies, weighs just 2 KB, and is free to use and modify under the MIT license.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              annyang has a medium active ecosystem.
              It has 6366 star(s) with 1069 fork(s). There are 244 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 45 open issues and 291 have been closed. On average issues are closed in 126 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of annyang is 2.6.1

            kandi-Quality Quality

              annyang has 0 bugs and 0 code smells.

            kandi-Security Security

              annyang has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              annyang code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              annyang is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              annyang releases are available to install and integrate.
              Deployable package is available in npm.
              Installation instructions are not available. Examples and code snippets are available.
              annyang saves you 364 person hours of effort in developing the same functionality from scratch.
              It has 869 lines of code, 0 functions and 14 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed annyang and discovered the below as its top functions. This is intended to give you an instant insight into annyang implemented functionality, and help decide if they suit your requirements.
            • Calculates and dist packages .
            • find package paths
            • load modules
            • define an event handler
            • this needs to be optimized because it doesn t have properties
            • Main function .
            • mutates a b
            • Main function
            • Evaluate dependencies between two dependencies
            • Creates an error .
            Get all kandi verified functions for this library.

            annyang Key Features

            No Key Features are available at this moment for annyang.

            annyang Examples and Code Snippets

            No Code Snippets are available at this moment for annyang.

            Community Discussions

            QUESTION

            How Can I call 2 different function using one toggle button in vanilla javascript
            Asked 2021-Nov-22 at 18:03

            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

            ...

            ANSWER

            Answered 2021-Nov-22 at 18:03

            You can check if action has active class you can start or if it doesnt have you can stop.

            Source https://stackoverflow.com/questions/70052954

            QUESTION

            Annyang is not displaying input command
            Asked 2021-Apr-07 at 20:26

            I am working on a project and need to input data in a form which contain input task name type=text with id=task_name. The user should be able to input data using annyang voice recognition, annyang is starting and can see red dot on page but when passing the commands nothing shows up, did i make an error somewhere. Clicking on a button will make annyang start and after that user could add use voice command to input data but voice command is not working.

            Here is my code

            ...

            ANSWER

            Answered 2021-Apr-07 at 18:59

            Your code will make annyang listen for the voice command "input task name" because you define that command here:

            Try saying "input task name" and see if it places that sentence into the task_name field.

            You will want to replace that text with a command that will catch any sentence the user says.

            For example:

            Source https://stackoverflow.com/questions/66990754

            QUESTION

            Web Speech API in hand-rolled in-app browser
            Asked 2021-Mar-03 at 01:47

            My company serves e-learning lessons through HTML5 files created in H5P, Captivate, Storyline. These lessons use xAPI to communicate grades and user information to an LRS. Recently I have been working on implementing voice recognition into these lessons using either Web speech API or Annyang and eventually we would like to build our own proprietary speech API. However, I see that voice recognition only seems to be compatible with Chrome desktop right now. I am working on creating a mobile app using React Native that can access a user's lessons from the database and "play" them in an in-app browser. So my questions are as follows:

            1. Would it be possible to hand-roll an in-app browser like Capacitor/ Cordova/ some other IAB to support the W3C Web Speech API specification?
            2. Would it even be allowed? Would Apple allow an app with such an IAB in their app store?
            3. Am I correct in understanding that an in-app browser could still support the necessary Javascript for features like xAPI, drag and drop, and session progress saving? Or am I barking up the wrong tree entirely?
            ...

            ANSWER

            Answered 2021-Mar-01 at 14:18
            1. Which Speech API's? The spec you referenced is broad and includes a number of underlying API's which are supported across different platforms.
            2. Probably not. Many apps submitted this way get rejected. Apple is against the method you're trying to load the app. An app that simply loads an IAB is not really an app to Apple.

            2.5.2: Apps should be self-contained in their bundles, and may not read or write data outside the designated container area...

            1. IAB is a hit or miss. They can't access native features through plugins. It should support most web standards, but from my experience, they're use for simpler use cases. Not hosting feature rich apps. Why not make a regular Cordova/Capacitor app without the IAB?

            Source https://stackoverflow.com/questions/66403562

            QUESTION

            Annyang.js works in test but after that it doesn't seem to connect
            Asked 2020-Apr-08 at 20:20

            I've tested Annyang in a blank file first. This worked fine, but when I connected the same code to a function in another file it didn't seem te be working. It seemed that the annyang was not connected anymore. The browser didn't ask for permission to use the microphone neither was the red circle visible. However, I've connected it the same way I did while testing.

            function: playerRotate(1); I want to start when the user says: turn.

            Below you can find my code:

            The javascript `

            ...

            ANSWER

            Answered 2020-Apr-08 at 20:20

            I downloaded your source code and it ran without a hitch (see image below).

            Is there something else different between how you ran annyang in your test when it worked and how you ran it later?

            My guess would be that what changed was how you ran it locally. Perhaps one of those times you opened it as file:// and another as http://localhost or even http://my-local-environment or something similar. Speech Recognition requires HTTPS (or on some versions it can run over HTTP if your host name is localhost). Your safest bet would be to try running it over SSL (even locally, without a valid certificate).

            Another option is that you may have blocked speech recognition once and the browser remembers that choice (your mileage may vary depending on browser and version).

            As for the code itself, it works great:

            Source https://stackoverflow.com/questions/61080502

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install annyang

            You can install using 'npm i annyang' or download it from GitHub, npm.

            Support

            annyang Frequently Asked Questionsannyang API referenceannyang tutorial
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i annyang

          • CLONE
          • HTTPS

            https://github.com/TalAter/annyang.git

          • CLI

            gh repo clone TalAter/annyang

          • sshUrl

            git@github.com:TalAter/annyang.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link