High-performance
audio resampling.
Transformations.Audio provides fast, high-fidelity audio resampling for .NET, with practical cleanup, speech polishing, level analysis, PCM conversion, WAV IO, and repeatable fidelity checks growing around the core.
Tools for rough recordings, not just perfect lab signals.
The package now includes practical repair and polish APIs for noisy voice notes, podcast tracks, narration, and utility pipelines. The approach is deterministic and composable: each stage is usable alone, and the presets are built from the same pieces.
Detects isolated sample outliers and interpolates from local neighbours, while preserving ordinary ramps and channel separation.
ClickRepairer.RepairClicksConvenience 50Hz/60Hz mains-hum removal using narrow notch filters over configurable harmonics.
HumRemover.Remove60HzHumOpinionated cleanup chains for spoken-word material: high-pass, optional hum notches, click repair, gate, normalize, limit, and de-ess.
SpeechCleaner.CleanPodcastUses a 4-9 kHz sidechain to reduce harsh sibilance without bluntly low-passing the whole recording.
DeEsser.ApplyPublic high-pass, low-pass, and notch biquad filters for rumble, hiss shaping, hum, and utility DSP chains.
AudioFilters.ApplyHighPassA conservative one-call cleanup chain for common rough-recording issues, with every stage configurable.
AudioCleaner.CleanRecordingFast paths, high-fidelity paths, and evidence between them.
Transformations.Audio keeps multiple algorithms in the mix because resampling is full of trade-offs. The active direction is a small set of dependable routes, with experimental candidates kept separately for A/B testing rather than quietly deleted.
Linear
The fastest route for previews, meter feeds, or environments where near-instant conversion matters more than high-frequency fidelity.
Spline
A compact balanced interpolator for moderate quality needs. Useful where a smooth output is more important than absolute anti-alias performance.
Sinc
The raw high-fidelity route, especially strong for upsampling and near-unity conversions where preserving musical detail matters.
Hybrid
An evidence-driven router that chooses fast or alias-aware paths by quality mode and sample-rate ratio.
| Question | Evidence style | Why it matters |
|---|---|---|
| Is the fast route good enough? | repeatable timing + SNR tables | Speed wins only count when quality stays inside the intended gate. |
| Should a candidate be promoted? | default + real-like fixture suites | Music, speech, percussion, field audio, alias stress, and round-trip cases behave differently. |
| Are duplicates truly identical? | A/B algorithm reports | Near-identical variants can be carried as experimental while the public API stays small. |
More than a resampler.
The package is growing into a focused audio utility layer for .NET apps that need reliable transformations without pulling in a large native stack.
Sample peak, true peak, RMS, dB conversion, crest factor, zero-crossing rate, DC offset, and energy measurements.
AudioLevels.AnalyzeOffline compressor, noise gate, and linked peak limiter for safer final levels and quieter gaps.
PeakLimiter.LimitLayout-aware downmixing from mono, stereo, 5.1, 7.1, and larger channel layouts.
Downmixer.ProcessSilence trimming, fades, crossfades, and segment assembly for simple offline processing chains.
AudioFades.FadeInPCM16 conversion, dither options, little-endian bytes, and simple PCM16 WAV reading/writing.
WavePcm16Reader.ReadDeterministic sine, chirp, impulse, and seeded white-noise generators for repeatable tests and examples.
AudioSignalGenerator.CreateSine