1.0.1 • Published 2 years ago

node-tone v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Node-Tone

Node wrapper for tone

Requires tone binary to be installed

Installation

npm install node-tone

Usage

const tone = require('tone')

// optionally specify path to binary
tone.TONE_PATH = 'path/to/tone'

// Get metadata for file
tone.dump('path/to/audiofile.mp3').then((jsonDump) => {
   console.log(jsonDump)
})

// Write metadata for file
const metadataToWrite = {
   Title: "some title",
   Comment: "Hello World"
}
tone.tag('path/to/audiobook.m4b', metadataToWrite).then(() => {
   // Success
})