You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

wav-concat

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wav-concat

Tiny Node.js module to concat your audio files (.wav format) without any gap

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
49
113.04%
Maintainers
1
Weekly downloads
 
Created
Source

wav-concat

Wav-concat node.js module to concat multiple wav audio files using ffmpeg

wav-contat provides a programmatic interface to do basically the same as calling ffmpeg via CLI like:

ffmpeg -i audio1.wav audio2.wav audio3.wav -y -filter_complex concat=n=3:v=0:a=1 out.wav

Requirements

  • ffmpeg

You can download static builds of ffmpeg from here.

If you want to use wav-concat in Heroku, you could use the ffmpeg2 buildpack

Install

npm install wav-concat

Usage

var wavconcat = require('wav-concat')

var songs = [
  'audio1.wav',
  'audio2.wav',
  'audio3.wav'
]

wavconcat(songs)
  .concat('out.wav')
  .on('start', function (command) {
    console.log('ffmpeg process started:', command)
  })
  .on('error', function (err, stdout, stderr) {
    console.error('Error:', err)
    console.error('ffmpeg stderr:', stderr)
  })
  .on('end', function (output) {
    console.error('Audio created in:', output)
  })

Take a look to the programmatic API for more details

API

wav-concat(images, [ options ])

Return: wavconcat

wav-concat constructor. You should pass an array<string> with the desired audio files.

Supported audio formats: wav

wav-concat#concat(output)

Merge wav files and generate the output audio to the given file path.

wav-concat.VERSION

Type: string

Current package semantic version

wav-concat.ffmpeg

Type: function

fluent-ffmpeg API constructor

License

MIT © Thomas Cosialls

Keywords

wav

FAQs

Package last updated on 20 Jul 2022

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.