Giter Site home page Giter Site logo

egnus / audiowaveform-installer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from casted-app/audiowaveform-installer

0.0 0.0 0.0 2.58 MB

Install audiowaveform binary on Ubuntu 18. Helpful for use in Node projects Cloud Functions.

JavaScript 100.00%

audiowaveform-installer's Introduction

audiowaveform-installer

Ubuntu 18 binary installer of Audiowavform for node projects. Useful for cloud functions on Google Cloud Platform.

Inspired by ffmpeg-installer

Using version 1.3.3 of Audiowaveform for Ubuntu.

Using version 1.4.2 of Audiowaveform for Darwin (MacOS)

Install

npm i audiowaveform-installer

Usage examples

const exec = require('child_process').exec
const audiowaveform = require('audiowaveform-installer');

const mp3File = 'test.mp3'
const waveFile = '/tmp/test.json'

const waveformArgs = [
  '--pixels-per-second 20',
  '--bits 8',
  '--height 20'
]

exec(`${audiowaveform} -i ${mp3File} -o ${waveFile} ${waveformArgs.join(' ')}`, (err, stdout, stderr) => {
  if(err) throw err
  console.log(`Audiowavform ${stdout}`)
})

Known issues

AWS and/or GCP

If you get permissions issues, try adding a .npmrc file with the following:

unsafe-perm=true

See tip from ffmpeg-installer

audiowaveform-installer's People

Contributors

adampatarino avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.