plan-transcode

0.1.0 • Public • Published

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

/plan-transcode/

    Package Sidebar

    Install

    npm i plan-transcode

    Weekly Downloads

    3

    Version

    0.1.0

    License

    BSD

    Last publish

    Collaborators

    • superjoe