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

jaxcore-bumblebee

v0.1.0

Published

Bumblebee voice application framework

Downloads

3

Readme

screenshot

JavaScript Voice Application Framework

Write your own voice apps and assistants with an easy-to-learn JavaScript API!

About

Bumblebee is a set of libraries, tools, and methodologies that enables JavaScript developers to write their own conversational voice assistants in either NodeJS or on the web.

The open source technologies that Bumblebee uses are:

Bumblebee builds upon these technologies by making them easier to use and tying them together into an integrated voice application API. Because these systems run locally without any cloud services, stand-alone privacy-focused always-on voice applications can finally be realized.

The Bumblebee project includes an ElectronJS voice app server console, which automatically installs and sets up DeepSpeech, and runs the bumblebee websocket service that voice applications can connect to. The applications run independently of the bumblebee server, and use a websocket API to connect and communicate by receiving speech-to-text results and hotword commands, or issuing text-to-speech instructions.

There are limitless ways to expand Bumblebee's capabilities by writing new applications that control devices or services on a home network, retrieve data from the internet, and anything else you can think of. And as you will see, they are both EASIER and MORE FUN to write than you think.

Bumblebee voice apps are small, simple, single file scripts. They can be shared easily between systems and build upon eachother to create larger and smarter voice applications. By associating a voice app with a hotword, your app becomes a voice assistant that can be called upon at any time.

Installation

Requirements

The computing resources required to run Bumblebee are much larger than a typical application.

  • Disk Space: 1.9 GB of space is required for installation
    • Bumblebee: ~450 MB
    • DeepSpeech: ~1.4 GB
  • CPU's with AVX support are required, GPU may be utilized if available
  • RAM usage will fluctuate ~350 MB (or higher)

Desktop Application

To install and run the Bumblebee desktop app from the source files, see:

Or install the packaged release:

After installation, the first time Bumblebee is run it will prompt to download the DeepSpeech pre-trained English model files (1.4 GB disk space required).

When installed successfully and with the microphone and speakers turned on, the console will react in real-time to the audio it hears. Test the that speech-to-text is operational before proceeding.

screenshot

Hello World

To get started, create the most simple Bumblebee app possible, a "Hello World" voice application.

Create a new directory and NPM project:

mkdir helloworld
cd helloworld
npm init
npm install jaxcore-bumblebee

Create a new file named helloworld.js:

const Bumblebee = require('jaxcore-bumblebee');

class HelloWorldApp extends Bumblebee.Application {
	constructor() {
		super(...arguments);
	}

	async loop() {
		this.console('Say "Hello World"');

		let recognition = await this.recognize();
		this.console(recognition);

		if (recognition.text === 'hello world') {
			await this.playSound('okay');
			await this.say('Hello World');
		}
		else {
			await this.playSound('error');
		}
	}
}

Bumblebee.connectApplication(HelloWorldApp, {
	name: "Hello World",
	autoStart: true
});

Run the voice app:

node helloworld.js

With the speakers and microphone turned on, you will be able to talk to this application and listen to it's responses. It doesn't do very much yet, if it hears you say "hello world' it will respond by making a beep sound and also saying "hello world".

This program will run continuously until the NodeJS script is closed using Command+C or Control+C and it can be started and stopped at any time.

Documentation (Coming Soon)

This is a brand new project with much more to come.

There are some additional examples to try and many more are in the works.

Use github's "watch" feature to stay tuned for updates!