UNPKG

mic-ts

Version:

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.

16 lines (9 loc) 818 B
# mic-ts Forked from [mic](https://github.com/ashishbajaj99/mic) with the same interface, a stream simple wrapper of [arecord](http://alsa-project.org/)/[sox](http://sox.sourceforge.net/). ## Installation This module depends on your machine having an installation of [sox](http://sox.sourceforge.net/) for Mac/Win OR [arecord](http://alsa-project.org/) for Linux. ```sh npm install mic-ts ``` ## Acknowledgments [mic](https://github.com/ashishbajaj99/mic) was created by [Ashish Bajaj](https://github.com/ashishbajaj99) bajaj.ashish@gmail.com, however missing typing for typescript and the repo is [inactive](https://github.com/ashishbajaj99/mic/pulls) for more then 5 years. This fork aims to preserver the existing interface without breaking changes and migrate the modern JS synctax as well as proper typing.