Skip to content

🔊 A node.js library to control the systems output volume

License

Notifications You must be signed in to change notification settings

matthiasheyman/node-loudness

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-loudness

This was originally forked from https://github.com/LinusU/node-loudness

A node.js library to control the systems output volume

Usage

The library currently has support for four simple async functions. The volume is specified as an integer between 0 and 100 (inc.).

import * as loudness from "@matthey/loudness";

await loudness.setVolume(45);

const vol = await loudness.getVolume();
// vol = 45

await loudness.setMuted(false);

const mute = await loudness.getMuted();
// mute = false

OS Support

Currently macOS, Windows (>= Vista) and Linux (ALSA) is supported, please send a pull request if you are using another setup.

Linux users: if pulse-audio is present, pulse device will be used

About

🔊 A node.js library to control the systems output volume

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • TypeScript 100.0%