ashishbajaj99 / mic

A simple stream wrapper for arecord (Linux (including Raspbian)) and sox (Mac, Windows). Returns a Passthrough stream object so that stream control like pause(), resume(), pipe(), etc. are all available.
MIT License
103 stars 61 forks source link

Issue on macOS #30

Open Sharcoux opened 5 years ago

Sharcoux commented 5 years ago

I get Error: spawn rec ENOENT

The issue is located at lib/mic.js line 54.

The main issue here is that the crash is hard to catch and detect from the user application. The library should catch the error and communicate about what is going on and how to fix it. For instance:

* Install sox for audio recording :
  https://github.com/JoFrhwld/FAVE/wiki/SoX-on-OS-X