sm-parsers

0.1.2 • Public • Published

sm-parsers

This package provides frame parsers for MP3 and AAC audio. They are used in StreamMachine for parsing incoming audio sources.

How to Use

Both parsers take an IO stream in and emit frame events for each audio frame. Events are also emitted for header, id3v1, id3v2 and debug.

Example:

    fs = require "fs"
    Parser = (require "sm-parsers").MP3

    mp3 = fs.createReadStream("./mymp3.mp3")

    p = new Parser

    p.on "frame", (frame,header) ->
      # do something...

    mp3.pipe(p)

Readme

Keywords

Package Sidebar

Install

npm i sm-parsers

Weekly Downloads

2

Version

0.1.2

License

MIT

Last publish

Collaborators

  • ewr
  • scpr