jaxcore / bumblebee-hotword-node

BumbleBee Hotword for NodeJS
Apache License 2.0
13 stars 4 forks source link

Bumblebee instantly closes #4

Closed nijynot closed 3 years ago

nijynot commented 4 years ago

Using your example in the README.md, the program instantly closes and outputs this:

ENVIRONMENT_IS_NODE /home/pi/bumblebee-wake-word/node_modules/bumblebee-hotword-node/lib/porcupine-v1.8/pv_porcupine.js

Any ideas on how to fix it? Or what's going wrong?

dsteinman commented 4 years ago

I removed the 'ENVIRONMENT_IS_NODE' console debug output in v0.0.9. But that might not explain why it's crashing.

Which environment are you on, and which of the examples did you try?

nijynot commented 4 years ago

I tried this only

const Bumblebee = require('bumblebee-hotword-node');
const bumblebee = new Bumblebee();
bumblebee.addHotword('bumblebee');

bumblebee.on('hotword', function (hotword) {
    console.log('Hotword Detected:', hotword);
});

bumblebee.start();
dsteinman commented 4 years ago

Edit: I was mistaken, looks like the "ENVIRONMENT_IS_NODE" is still there in v0.0.9 (i fixed in the web version).

Are you using Windows, MacOSX, or Linux? It's possible the location of sox is wrong. I don't think I've actually ever tried this in Windows.

I do have another larger voice project in the works, and it does work in Windows. It runs Porcupine in a different way and runs DeepSpeech (speech-to-text) and speech synthesis as well https://github.com/jaxcore/bumblebee