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

@bbc/convert-to-audio

Package Overview
Dependencies
Maintainers
487
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bbc/convert-to-audio

Node ffmpeg wrapper to convert audio or video file to an audio file that meets STT specs

  • 1.2.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
487
Weekly downloads
 
Created
Source

Convert To Audio

Node ffmpeg wrapper to convert audio or video file to an audio file that meets STT specs

Originally from autoEdit2 and DPE

On npm @bbc/convert-to-audio

Setup

git clone git@github.com:bbc/convert-to-audio.git
cd convert-to-audio
npm install

Usage

npm install @bbc/convert-to-wav
const convertToAudio = require("@bbc/convert-to-wav");

const url = "https://download.ted.com/talks/KateDarling_2018S-950k.mp4";
const audioFileOutput = "./ted-talk.wav";

convertToAudio(url, audioFileOutput)
  .then(newFile => {
    console.log(newFile);
  })
  .catch(err => {
    console.error(err);
  });

Or with async await, inside an async block

const convertToAudio = require("@bbc/convert-to-wav");

const url = "https://download.ted.com/talks/KateDarling_2018S-950k.mp4";
const audioFileOutput = "./ted-talk.wav";
// inside an async function
const newFile = await convertToAudio(url, audioFileOutput);

System Architecture

Uses ffmpeg binary, and fluent ffmpeg to convert to audio, wav.

Development env

Node version is set in node version manager .nvmrc

Build

NA

Tests

NA

Deployment

npm run publish:public

FAQs

Package last updated on 12 Dec 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