annyang v2.6.0 Release Notes

Release Date: 2016-10-07 // over 7 years ago
  • 🚀 👍 This release is 100% backwards compatible with all v2 releases.

    [Added] Allow listening to the soundstart event

    You can now add a callback event which will run when the speech recognition's soundstart event fires.

    annyang.addCallback('soundstart', fn);

    0️⃣ This event will fire once per speech recognition session (due to a bug in Chrome). If you would like to get it again the next time sound is heard, you can abort and restart speech recognition… which is the default behavior in HTTPS anyway. In other words, in HTTPS it works great.

    👀 See a more complete example for detecting when the user starts and stops speaking in the FAQ.

    🔄 Changed file structure and development stack

    The main annyang files which you will include in your project are now in the /dist directory:

    If you would like to work on annyang's code itself, it is now in the /src directory:

    annyang's source now passes through babel with the es2015 preset, so you can use ES2015 language features in it.

    🍱 Awesome people ⭐️

    Special thanks to:

    • @remybach - For the original soundstart event code, and helping determine the final functionality.
    • @peterdillon - Helping create a use case to test the new soundstart event.