Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
(unmaintained, deprecated, abandoned) node-plan plugin for transcoding audio
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

See node-plan.

Backend is node-sox.

input

  • tempPath - audio to transcode
  • makeTemp - a function which generates a tempfile and accepts a suffix

output

  • tempPath - path to the transcoded audio

options

  • format - destination format, such as 'wav'. defaults to 'mp3'.
  • sampleRate - destination sample rate. defaults to 44100.
  • channelCount - destination channel count. defaults to 2.
  • bitRate - destination bitrate. defaults to 196608 (192kbps)
  • compressionQuality - compression speed vs quality. defaults to 5. see man soxformat search for -C for more info

exports

  • src - info about source audio file
    • format
    • sampleRate
    • channelCount
    • sampleCount
    • duration
    • bitRate
  • dest - info about destination audio file
    • format
    • sampleRate
    • channelCount
    • sampleCount
    • duration
    • bitRate
Something went wrong with that request. Please try again.