Versions in this module Expand all Collapse all v0 v0.0.1 May 6, 2026 Changes in this version + func BandLimitedNoise(minFreq, maxFreq float64, samples, sampleRate int, r *rand.Rand) []float64 + func FFTNoise(f []float64, r *rand.Rand) []float64 + func ReadWAV(path string) (samples [][]float64, sampleRate int, err error) + func ReadWAVBytes(data []byte) (samples [][]float64, sampleRate int, err error) + func ReduceNoise(y [][]float64, sr int, opt Options) ([][]float64, error) + func ReduceNoiseMono(y []float64, sr int, opt Options) ([]float64, error) + func ReduceNoiseWAVBytes(data []byte, opt Options) ([]byte, error) + func WriteWAVPCM16(path string, samples [][]float64, sampleRate int) error + func WriteWAVPCM16Bytes(samples [][]float64, sampleRate int) ([]byte, error) + type Algorithm int + const NonStationary + const Stationary + type Options struct + Algorithm Algorithm + ChunkSize int + ClipNoiseStationary bool + FreqMaskSmoothHz float64 + HopLength int + NFFT int + NJobs int + NStdThreshStationary float64 + Padding int + PropDecrease float64 + SigmoidSlopeNonstationary float64 + ThreshNMultNonstationary float64 + TimeConstantS float64 + TimeMaskSmoothMs float64 + WinLength int + YNoise [][]float64 + func DefaultOptions() Options