Skip to content
distopikPublic

About

Native libFLAC bindings for Node

Resources

Stars

8 stars

Watchers

2 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

Repository files navigation

node-flac

Native libFLAC bindings for Node. Similar format object used as node-wav and speaker.

Encoding:

const flac      = require('node-flac'),
      wav       = require('node-wav'),
      fs        = require('fs'),
      wavReader = new wav.Reader()

wavReader.on('format', function (format) {
  const flacEncoder = new flac.FlacEncoder(format)

  wavReader.pipe(flacEncoder).pipe(fs.createWriteStream('output.flac'))
})

fs.createReadStream('track01.wav').pipe(wavReader)

About

Native libFLAC bindings for Node

Resources

Stars

8 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages