Giter Club home page Giter Club logo

Comments (11)

shekit avatar shekit commented on June 16, 2024 2

Great! Works in Node 6.x!

Node - 6.9.4
Npm - 3.10.10

from sonus.

hvaddi9 avatar hvaddi9 commented on June 16, 2024 1

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.

evancohen avatar evancohen commented on June 16, 2024

Currently Node 7.x isn't supported. Can you try Node 6.x?

from sonus.

hvaddi9 avatar hvaddi9 commented on June 16, 2024

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.

evancohen avatar evancohen commented on June 16, 2024

@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.

evancohen avatar evancohen commented on June 16, 2024

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.

hvaddi9 avatar hvaddi9 commented on June 16, 2024

@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.

evancohen avatar evancohen commented on June 16, 2024

from sonus.

hvaddi9 avatar hvaddi9 commented on June 16, 2024

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.

evancohen avatar evancohen commented on June 16, 2024

from sonus.

alightedlamp avatar alightedlamp commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.