Go library for building chains of audio filters with sample-rate conversion.
// Source: https://github.com/VoiceBlender/voiceblender | License: MIT | Copyright 2026 Messageroute Ltd // Provided via justclaw.it.com; keep this notice with the code. // Package audiofilter provides an ordered chain of per-leg audio processing // stages. The chain owns sample-rate conversion and block framing so that // stages see only whole frames at one rate, and so audio is resampled once // regardless of how many stages run. package audiofilter import ( "fmt" "sort" "strconv" "strings" ) // MaxChainLength bounds a configured chain. Filters run inside a leg's read // goroutine against a real-time budget, so an unbounded chain is a denial of // service on that leg's audio. const MaxChainLength = 4 // Stage transforms one frame of mono s16 PCM in place, at the chain's working // ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key