Code Example:
const pipeline = await createDspPipeline({
redisHost: "localhost",
redisPort: 6379,
stateKey: "dsp:user:ch1",
});
pipeline
.filter({type:"butterworth",mode:"bandpass",lowCutoffFrequency:20,highCutoffFrequency:450})
.stft({windowSize:512,hopSize:160})
.melSpectrogram({numMelBands:26})
.mfcc({numCoefficients:13});
await pipeline.process(audioData, {sampleRate:16000});
const state = await pipeline.saveState();
// worker dies → new worker
await pipeline.loadState(state);
Platform
• x64 + ARM
• Tested on Pixel 9 Pro XL (stable; NEON tuning pending)
• Node 18/20/22
• N-API v8
• Prebuilds for x64 (Linux/macOS/Win)
• ARM compiles once → works like normal
Why not WASM?
• Native threading
• AVX2/SSE2/NEON
• Zero-copy buffers to/from Redis
• Clean integration w/ Node streams