Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jamen/pull-audio-gain

Transform volume of audio in a pull-stream
https://github.com/jamen/pull-audio-gain

Last synced: 17 days ago
JSON representation

Transform volume of audio in a pull-stream

Awesome Lists containing this project

README

        

# pull-audio-gain

> Transform volume of audio in a pull-stream

```js
pull(
generator(),
gain({ volume: 0.5 }),
speaker()
)
```

## Install

```sh
npm install --save pull-audio-gain
```

```sh
yarn add pull-audio-gain
```

## Usage

### `gain(options|volume)`

Returns a [pull-stream transform](https://github.com/pull-stream/pull-stream) that changes volume of audio

Options are the same as [`audio-gain`](https://github.com/audiojs/pull-audio-gain)

```js
pull(
generator(),
gain(0.6),
speaker()
)
```