npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@linto-ai/webvoicesdk

v1.2.5

Published

Building blocks for voice-enabled applications in the browser

Downloads

38

Readme

WebVoice SDK

WebVoice SDK is a JavaScript library that provides lightweights and fairly well optimized buildings block for always-listening voice-enabled applications right in the browser. This library is the main technology behind LinTO's Web Client as it deals with everything related to user's voice input.

Functionalities

  • Hardware Microphone Handler : hook to hardware, record, playback, get file from buffer as wav... very handy
  • Downsampler : re-inject acquired audio at any given samplerate / frame size
  • Speech Preemphaser : Prepare acquired audio for machine learning tasks
  • Voice activity detection : Detect when someone's speaking (even at very low signal-to-noise ratio)
  • Features extraction : Pure JavaScript MFCC (Mel-Frequency Cepstral Coefficients) implementation
  • wake word / hot word / trigger word : Immediatly trigger tasks whenever an associated chosen word has been pronounced

Online demo

You can find an online demo of the library on this static webpage : https://webvoicesdk.netlify.app/

It showcases the entire pipeline : microphone -> voice-activity-detection -> downsampling -> speech-preemphasis -> features-extraction -> wake-word-inference

Note : To start the tool, click on the start button, accept browser's access to the default audio input. The Voice Activity Detection "led" will blink as someone's speaking. Something magic will happen if someone says Linto. (Something like "LeanToh" for english speakers as the model was trained with our french data-set)

Note : You can select the model you want to use. The library comes prepacked with two wake word models (one model for LinTO and a triple headed model that bounces on LinTO, Snips or Firefox)

Highlights

  • Complete multithreading JavaScript implementation using Workers for real-time processing on any machine
  • WebAssembly optimisations whenever possible
  • State of the art Recurent Neural Network that uses WebAssembly portable runtime for voice activity detection. This is modern and efficient alternative to the popular Hark voice activity detection tool
  • Supports single inline script that can get deployed in any webpage without mandatory bundlers
  • Built library embbeds everything (wasm files, tensorflow.js models for wake words, workers...) into a single static javascript file
  • The wake word Engine relies on Tensorflow JS and WebAssembly portable runtime to infers towards single or multiple wake-words model with lightweight and ultra-effecient performances.
  • Portable machine-learning models : Use the same wake word models on embedded devices, mobile phones, desktop computers, web pages. See : LinTO Hotword Model Generator and Create your custom wake-word
  • Full offline speech recognition in browser, no server behind, all the magic happens in your webpage itself

Usage

Further documentation and information is in progress. For the moment, You can still build and test the library by yourself

npm run test

Or import it in your browser :

<script>https://cdn.jsdelivr.net/gh/linto-ai/webVoiceSDK@master/dist/webVoiceSDK-linto.min.js</script>

Copyright notice

This library includes modified bits from :