annyang v2.6.1 Release Notes

Release Date: 2018-05-07 // over 3 years ago
  • πŸš€ πŸ‘ This release is 100% backwards compatible with all v2 releases.

    πŸ‘ Ensured support up to Node.js 10.
    ⚑️ Updated dependencies and rebuilt for a more efficient distributable.

    🍱 Awesome people ⭐️

    Special thanks to:


Previous changes from v2.6.0

  • πŸš€ πŸ‘ 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.