mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* type definitions for node-microphone * removed blank lines * fixed export issue * added the allowSyntheticDefaultImports tsc option
17 lines
323 B
TypeScript
17 lines
323 B
TypeScript
import Microphone from "node-microphone";
|
|
|
|
const mic = new Microphone({
|
|
channels: 1,
|
|
bitwidth: 16,
|
|
endian: "little",
|
|
device: "default",
|
|
encoding: "signed-integer",
|
|
rate: 44100,
|
|
additionalParameters: {}
|
|
});
|
|
|
|
const stream = mic.startRecording();
|
|
stream.pipe(process.stdout);
|
|
|
|
mic.stopRecording();
|