Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 797 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 797 Bytes

@sapphi-red/speex-preprocess-wasm

npm version CI

WebAssembly build of SpeexDSP preprocess.

Install

npm i @sapphi-red/speex-preprocess-wasm # yarn add @sapphi-red/speex-preprocess-wasm

Usage

import {
  loadSpeexModule,
  SpeexPreprocessor
} from '@sapphi-red/speex-preprocess-wasm'

const speexModule = await loadSpeexModule()
const bufferSize = 128
const sampleRate = 44100
const speexPreprocessor = new SpeexPreprocessor(
  speexModule,
  bufferSize,
  sampleRate
)