# noise-gate

> To filter out the noise from the audio source

Latest version **0.0.3** (published 2017-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install noise-gate
pnpm add noise-gate
yarn add noise-gate
bun add noise-gate
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2017-11-21 |
| First published | 2017-11-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tennison Chan |
| Maintainers | tennisonchan |
| Keywords | audio, filter, noise, noise-gate, reduction, web-audio-api |

## Links

- npm: https://www.npmjs.com/package/noise-gate
- npm.io page: https://npm.io/package/noise-gate

## Recent versions

- 0.0.3 (latest) — 2017-11-21
- 0.0.2 — 2017-11-21
- 0.0.1 — 2017-11-21

## README

# Noise Gate
To filter out the noise from the audio source. This is simply a compressor and a filter with a pre-adjusted values on the setting.

## Get Start
```js
let noiseGate = new NoiseGateNode(audioContext);

// Connect to the source and then to the destination
source.connect(noiseGate);
noiseGate.connect(audioContext.destination);
```

## Example
```js
const audioContext = new AudioContext();

navigator.mediaDevices.getUserMedia({ audio: true })
.then(function(stream) {
  let source = this.context.createMediaStreamSource(stream);
  let noiseGate = new NoiseGateNode(audioContext);
  source.connect(noiseGate);
  noiseGate.connect(audioContext.destination);
});
```

---
_Source: https://npm.io/package/noise-gate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
