pulseaudio.js
TypeScript icon, indicating that this package has built-in type declarations

1.3.4 • Public • Published

PulseAudio.js

NPM

PulseAudio.js is a fully-featured JavaScript (TypeScript) client library for PulseAudio, the sound system used by modern Linux distributions. The client can be used to configure and control the PulseAudio server, play or record audio, and much more. The library is implemented entirely in TypeScript and has no native dependencies. It communicates with the server using the PulseAudio native protocol over a UNIX domain socket.

The library requires PulseAudio 10.0 or higher (PulseAudio native protocol version 32 or higher).

PulseAudio.js is free software licensed under the ISC license.

Main Features

Installation & Basic Usage

npm install pulseaudio.js
import { PulseAudio } from 'pulseaudio.js';

const pa = new PulseAudio();

(async function() {
    await pa.connect();
    console.log(await pa.getServerInfo());
    await pa.disconnect();
})();

Documentation

Please refer to the wiki for documentation and usage examples. API documentation generated with TypeDoc is available here.

Readme

Keywords

Package Sidebar

Install

npm i pulseaudio.js

Weekly Downloads

255

Version

1.3.4

License

ISC

Unpacked Size

306 kB

Total Files

40

Last publish

Collaborators

  • janakj