Comments (11)
Great! Works in Node 6.x!
Node - 6.9.4
Npm - 3.10.10
from sonus.
OMG! Its working. I did not replace the contents of sound config file
I was told to configure it but i couldn't find the command anywhere. Finally found it in your docs
rm -f ~/.asoundrc && nano ~/.asoundrc
Thank you very much @evancohen . Big fan of your work
from sonus.
Currently Node 7.x
isn't supported. Can you try Node 6.x
?
from sonus.
Hey, I'm having a problem in running sonus
I tried to install sonus in Node 6.10.0 npm 3.10.0 and I got these errors during installation
node-pre-gyp ERR! Tried to download(404): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.1.2/node-v48-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v48 ABI) (falling back to source compile with node-gyp)
.
.
.
.
.
[snowboy] Success: "/home/pi/node_modules/snowboy/lib/node/binding/Release/node-v48-linux-arm/snowboy.node" is installed via remote
npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
.
.
.
.
.
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
Then i tried to run the example.js from examples directory and this happened
pi@raspberrypi:~/node_modules/sonus/examples $ node example.js
ERROR (Input():snowboy-io.cc:266) Fail to open input file "node_modules/snowboy/resources/common.res"
terminate called after throwing an instance of 'std::runtime_error'
what(): ERROR (Input():snowboy-io.cc:266) Fail to open input file "node_modules/snowboy/resources/common.res"
[stack trace: ]
/home/pi/node_modules/snowboy/lib/node/binding/Release/node-v48-linux-arm/snowboy.node(_ZN7snowboy13GetStackTraceEv+0x34) [0x748a1ff8]
/home/pi/node_modules/snowboy/lib/node/binding/Release/node-v48-linux-arm/snowboy.node(_ZN7snowboy13SnowboyLogMsgD1Ev+0x4b8) [0x748a2638]
/home/pi/node_modules/snowboy/lib/node/binding/Release/node-v48-linux-arm/snowboy.node(_ZN7snowboy5InputC1ERKSs+0x264) [0x74897194]
/home/pi/node_modules/snowboy/lib/node/binding/Release/node-v48-linux-arm/snowboy.node(_ZN7snowboy22UnpackPipelineResourceERKSsPSs+0x28) [0x7488eb18]
/home/pi/node_modules/snowboy/lib/node/binding/Release/node-v48-linux-arm/snowboy.node(_ZN7snowboy13SnowboyDetectC1ERKSsS2_+0x1d4) [0x7487d44c]
/home/pi/node_modules/snowboy/lib/node/binding/Release/node-v48-linux-arm/snowboy.node(_ZN13SnowboyDetectC1ERKSsS1_+0x54) [0x7487bc70]
/home/pi/node_modules/snowboy/lib/node/binding/Release/node-v48-linux-arm/snowboy.node(_ZN13SnowboyDetect3NewERKN3Nan20FunctionCallbackInfoIN2v85ValueEEE+0x428) [0x7487c148]
/home/pi/node_modules/snowboy/lib/node/binding/Release/node-v48-linux-arm/snowboy.node(+0x19934) [0x74879934]
Aborted
I tried to run microphone.js in snowboy's examples. It didn't work either
pi@raspberrypi:~/node_modules/snowboy/examples/Node $ node microphone.js
Recording with sample rate 16000...
End Recording: 139.018ms
I'm using Raspberry PI 3 Model B. OS: Raspbian Jessie with Pixel
I'm using Playstation Eye as microphone and the device is detected (checked it in arecord -l
)
What do I do now? Did I miss something?
from sonus.
@hvaddi9 it looks like something is funky with your installation. Can you describe how you got into this state (how did you get Sonus and the dependencies on your Pi)
from sonus.
From the error you provided it looks like you tried to install sonus into your users home directory (which in this case isn't an npm project)
from sonus.
@evancohen
I installed these dependencies first
sudo apt-get install swig3.0 python-pyaudio python3-pyaudio sox libsox-fmt-all
pip install pyaudio
sudo apt-get install libatlas-base-dev
then i installed sonus
pi@raspberrypi:~ $ npm install --save sonus
from sonus.
from sonus.
I created a new project, installed sonus and i've run example.js from the root of project . Now it runs and terminates immediately.
**@*****:~/Documents/*** $ node example.js
Say "sonus"...
**@*****:~/Documents/*** $
from sonus.
from sonus.
I was also getting this error:
ERROR (Input():snowboy-io.cc:266) Fail to open input file "node_modules/snowboy/resources/common.res"
terminate called after throwing an instance of 'std::runtime_error'
what(): ERROR (Input():snowboy-io.cc:266) Fail to open input file "node_modules/snowboy/resources/common.res"
I had my project files in a src
directory, moving them up to the project's root fixed it.
from sonus.
Related Issues (20)
- word spacing on some languages is not correct
- Snowboy shutdown HOT 9
- occasional loss of cloud connection, hotword reco still works..
- support windows HOT 8
- Bug report: Could not start server after npm install HOT 1
- [Question] How to speed up sonus? HOT 5
- Watson STT support? HOT 3
- Raspbian - Install fail HOT 1
- node sonus.js HOT 5
- Wrong description: 'speechContext' --> 'speechContexts' HOT 1
- Usage purely offline HOT 1
- Can you pipe audio data to this (with node.js) HOT 3
- App crashes when trying to access .pmdl file inside electron app. HOT 11
- (node:6174) DeprecationWarning: grpc.load: HOT 10
- Crashes when built inside electron app HOT 1
- sonus error HOT 1
- Hangs on partial result listener HOT 2
- Sonus.pause(sonus) and Sonus.resume(sonus) HOT 12
- snowboy 1.3.0 on some HW-systems does not work, but 1.2.0 does HOT 6
- Uncaught Error for something really not sure about HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonus.