🚀 DAY 1 OF LAUNCH WEEK: Reachability for Ruby Now in Beta.Learn more →
Socket
Book a DemoInstallSign in
Socket

wavesurfer-record-plugin-wav

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

wavesurfer-record-plugin-wav

![NPM](https://img.shields.io/npm/l/wavesurfer-record-plugin-wav) ![NPM](https://img.shields.io/npm/v/wavesurfer-record-plugin-wav) ![GitHub Workflow Status](https://github.com/tscritch/wavesurfer-record-plugin-wav/actions/workflows/wavesurfer-record-plug

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

Wavesurfer Record Plugin Wav

NPM NPM GitHub Workflow Status

Replacement Wavesurfer.js Record Plugin for recording .wav files. Uses the extendable-media-recorder to encode to wav.

Getting started

Installation

npm install wavesurfer-record-plugin-wav
yarn install wavesurfer-record-plugin-wav

Example

Songleaf - Audio Workbench

Usage

Use this as you would the default Wavesurfer.js Record Plugin

When creating and registering the plugin, make sure to set mimeType to "audio/wav"

import WaveSurfer from "wavesurfer.js"
import RecordPlugin from "wavesurfer-record-plugin-wav"

...

wavesurfer = WaveSurfer.create(...)

record = wavesurfer.registerPlugin(RecordPlugin.create({
  mimeType: "audio/wav",
}))

See the example usage here - https://wavesurfer.xyz/examples/?record.js

Caveats

Because extendable-media-recorder does not support MediaRecorder.requestData (MDN) function the RecordPlugin.pause() will not function properly. I've left it in for parity but it noops.

FAQs

Package last updated on 28 Apr 2024

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