Giter Club home page Giter Club logo

Comments (3)

chandywerks avatar chandywerks commented on August 21, 2024 1

I had a similar issue. In my case I found that I needed to specify the correct device. I'm using a USB audio capture device.

To list available devices run this,

arecord --list-pcm

The value I used was, "plughw:CARD=system,DEV=0" which you can pass to the mic() constructor like so,

var micInstance = mic({
    device: "plughw:CARD=system,DEV=0",
    rate: '16000',
    channels: '1',
    debug: true,
    exitOnSilence: 6
});

from mic.

ashishbajaj99 avatar ashishbajaj99 commented on August 21, 2024

If you are on Linux, what is the output of this?

$ arecord temp.wav

Please see the README file carefully:

This module depends on your machine having an installation of sox (Mac/Windows Users) OR ALSA tools for Linux. You can use this library to record from any microphone device. Before installing and experimenting with the mic module, you need to ensure that you are able to capture audio via the command line:

$ arecord temp.wav

To get ALSA tools on Raspberry Pi running raspbian, try the following:

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install alsa-base alsa-utils

After the above is tested and validated, you can proceed to install the module using:

$ npm install mic

from mic.

AndrewKralovec avatar AndrewKralovec commented on August 21, 2024

@ashishbajaj99 Yes, i have th libs installed.
image

from mic.

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.