# speaker-cli

> Command line tool to listen to what you pipe inside.

Latest version **1.0.0** (published 2020-01-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install speaker-cli
pnpm add speaker-cli
yarn add speaker-cli
bun add speaker-cli
```

Provides the command `speaker`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-01-17 |
| First published | 2017-06-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 2 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Jannis R |
| Maintainers | derhuerst |
| Keywords | speaker, pcm, audio, stdin, pipe |

## Links

- npm: https://www.npmjs.com/package/speaker-cli
- Repository: https://github.com/derhuerst/speaker-cli
- Issues: https://github.com/derhuerst/speaker-cli/issues
- npm.io page: https://npm.io/package/speaker-cli

## Dependencies (2)

- [mri](https://npm.io/package/mri.md) ^1.1.0
- [speaker](https://npm.io/package/speaker.md) ^0.5.1

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-01-17
- 0.1.1 — 2017-06-07
- 0.1.0 — 2017-06-07

## README

# speaker-cli

**Command line tool to listen to what you pipe inside.** Remember that the input needs to be raw audio ([PCM](https://en.wikipedia.org/wiki/Pulse-code_modulation)).

```shell
npm i -g speaker-cli
# convert any audio file and play it
ffmpeg -i some-audio.mp3 -f s16le -acodec pcm_s16le - | speaker
```

[![npm version](https://img.shields.io/npm/v/speaker-cli.svg)](https://www.npmjs.com/package/speaker-cli)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/speaker-cli.svg)
[![chat on gitter](https://badges.gitter.im/derhuerst.svg)](https://gitter.im/derhuerst)
[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)


## Installing

```shell
npm install -g speaker-cli
```

Or use [`npx`](https://npmjs.com/package/npx). ✨


## Usage

```js
Usage:
    speaker

Examples:
    cat some-audio.pcm | speaker
```


## Related

- [`speaker`](https://github.com/TooTallNate/node-speaker) – The library used by this tool.


## Contributing

If you have a question or have difficulties using `speaker-cli`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/speaker-cli/issues).

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