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.

9 lines (6 loc) 211 B
import { type Mic, MicImpl } from "./Mic.js"; import type { MicOptions } from "./MicOptions.js"; const mic = function mic(options: MicOptions = {}): Mic { return new MicImpl(options); }; export default mic;