Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

audio-conversion-queue

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audio-conversion-queue

Convert audio files temporarily, on the fly.

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

audio-conversion-queue

Convert audio files temporarily, on the fly.

npm version build status ISC-licensed chat on gitter support me on Patreon

Installing

npm install audio-conversion-queue

Usage

const createConversionQueue = require('audio-conversion-queue')

const queue = createConversionQueue()

queue.convert('/path/to/audio.m4a', (err, dest, purge) => {
	if (err) return console.error(err)

	console.info('the converted MP3 file is at', dest)
	// do something with the file…
	// when you don't need it anymore, delete it:
	purge((err) => {
		if (err) console.error(err)
	})
})

API

const queue = createConversionQueue(srcToDest = defaultSrcToDest, ffmpegArgs = ['-acodec', 'mp3', '-format', 'mp3'])

Pass a custom createConversionQueue(src, cb) function that, given the source path src (e.g. /path/to/audio.m4a), calls cb with the path of the MP3 destination file (e.g. /path/to/audio-4f2f.mp3). You could also use the hash of the source file.

Pass an array of strings for ffmpegArgs to customize the conversion. Refer to the ffmpeg docs for details.

Contributing

If you have a question or have difficulties using audio-conversion-queue, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.

Keywords

FAQs

Package last updated on 01 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc