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

speakable-google-cloud-speech

v0.0.2

Published

A continuous speech recognition module for node.js, with google cloud speech integration

Downloads

3

Readme

node-speakable

this is a fork of node-speakable--

Demo video on what you can achieve using node-speakable: https://my.doctape.com/s/NLHn1z

Description

node-speakable is a continuous speech recognition module for node.js.

Basically, node-speakable is continuous waiting for you to say something and waits until you finally stopped talking. It then emits an speechResult event with an Array() including of your recognizedWords. You can then .indexOf() the array to trigger some awesome action to happen, like turning on your Philips Hue lights.

If you ever talked to your XBOX360 (kinect) you're already familiar on how a continuous speech recognition system works for you.

How

It's pure JavaScript magic... Ok, not yet! Currently node-speakable needs you to put a binary of sox into the modules (into lib) folder to do the recording. The actual voice recognition is then achieved trough a POST to the the Google Speech API.

Setup

You'll need to ensure that you turn the Google Speech API selection to 'ON' in the API Console. If you don't see it there, you might want to check out this first: http://www.chromium.org/developers/how-tos/api-keys. For the example project, you'll also need to set the environment variable GKEY in your shell to your API key.

Example usage (node example.js)

var Speakable = require('./');

var speakable = new Speakable({key: 'your-google-API-key'});

By default, the language is American English ( 'en-US' ), but you can specify another language in the options. Example usage:

var speakable = new Speakable({key: 'your-google-API-key'}, {lang: 'it-IT'});
speakable.on('speechStart', function() {
  console.log('onSpeechStart');
});

speakable.on('speechStop', function() {
  console.log('onSpeechStop');
});

speakable.on('speechReady', function() {
  console.log('onSpeechReady');
});

speakable.on('error', function(err) {
  console.log('onError:');
  console.log(err);
  speakable.recordVoice();
});

speakable.on('speechResult', function(recognizedWords) {
  console.log('onSpeechResult:')
  console.log(recognizedWords);
  speakable.recordVoice();
});

speakable.recordVoice();

License

node-speakable is licensed under the MIT license.

Todo / Ideas

  • Allow overwrite of speakable’s defaults (sox path & parameters, etc.)
  • Limit maximum listening time