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

gladys-voice

v0.1.2

Published

To be able to speak to Gladys !

Downloads

8

Readme

Gladys Voice Recognition Engine

This simple module allows you to speak to gladys. More informations about Gladys on our website.

It uses snowboy to detect the hotword "Gladys", and then it streams your voice to a speech recognition service.

For now it only support Google Cloud Speech.

Installation

First, you need to install a few dependencies :

For linux :

sudo apt-get install sox libsox-fmt-all libatlas-base-dev mpg321

For macOS

brew install sox

Then, install this module on your machine (Raspberry Pi, any linux or Mac) :

Note : You need Node.js >= v6

npm install gladys-voice

Then go to the folder where it has been installed :

cd node_modules/gladys-voice

Creating a Google Project

Go to the Google Cloud Console.

  • Create an account if you don't have one, and create a project.
  • In the Library panel in your project, activate the Google Cloud Speech API.
  • Then, you need to activate billing on your account. Unfortunately, it's not possible to use the service without having a credit card saved. Note that it won't take you money, you have a bunch of free requests and as you are alone on your project, it will certainly be enough without paying.
  • Go to the Credentials panel, create new credentials, select Key and create a JSON key.
  • Put this JSON key file in your data folder in the gladys-voice folder of your installation.

Modify the config file

You can know edit the config.js file with your informations, or define environment variable (recommended), modify :

  • Your Google Project Id
  • The path to your Google Key File
  • The URL of your Gladys instance
  • Your Gladys access token (You can create an access token in Parameters => Security in Gladys)

Start the module

To start the module, two options, for testing you can start it with node :

node app.js

For long term usage, prefer using pm2 so that the module will restart in case of crash.

Install PM2 if you don't already have it :

npm install -g pm2

Then, start the module :

pm2 start app.js --name gladys-voice