@oxpulse/voice-core
v0.3.0
Published
OxPulse voice-core — shared framework-agnostic voice primitives (recorder, waveform, player).
Maintainers
Readme
@oxpulse/voice-core
Shared framework-agnostic voice primitives for OxPulse chat clients.
This package is a shared extraction of the voice recorder, waveform math/render, AudioContext analyser tap, and headless audio player used by the chat widget and web app. It is pure TypeScript + Web APIs and has zero runtime dependencies.
Private package. Trusted-publisher OIDC for this package is not configured yet, so it is marked
private: trueand kept out ofscripts/release-npm-packages.mjs. It will be published later, once the OIDC bootstrap is complete.
Public surface
recorder.ts—createVoiceRecorder,pickMime,validateVoiceBlob,MAX_VOICE_MS,MAX_VOICE_BYTESanalyser-tap.ts—attachAnalyserTapfor live waveform barswaveform-math.ts— puredownsamplePeaks,envelopeStep,xToProgress,sampleLiveBars,quantizePeaks,dequantizePeaks,sanitizePeakswaveform-render.ts— browserextractPeaksFromBlob,renderStaticWaveformplayer.ts— headlesscreateVoicePlayerwith play/pause/seek/speed/subscribe
All public symbols are re-exported from src/index.ts.
