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

@lodestream/waveform-samples-generator

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lodestream/waveform-samples-generator

This is a thin wrapper around [audiowaveform](https://github.com/bbc/audiowaveform) to parse audio files and generate sample data.

  • 1.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Waveform Samples Generator

This is a thin wrapper around audiowaveform to parse audio files and generate sample data.

If you want more features or generate them on your own, just use the original audiowaveform and waveform-data.js.

Installation

  1. Follow this guide to install audiowaveform binary into your system.
  2. Install this module:
npm install waveform-samples-generator
  1. Use it like this:
import { parseFile } from "waveform-samples-generator";
const samples = parseFile({ filePath: "/path/to/your/audio", sampleRate: 10 });
// Or render it
console.log(samples)

If your want to draw waveforms out of it, use samples.max, it's an array of points.

FAQs

Package last updated on 26 Dec 2018

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