Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jamen/pull-audio-gain
- Owner: jamen
- License: mit
- Created: 2017-05-17T08:08:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-23T04:12:43.000Z (over 7 years ago)
- Last Synced: 2024-10-25T19:36:44.380Z (19 days ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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()
)
```