Skip to main content

Module decoder

Module decoder 

Source
Expand description

Audio decoding, resampling, and channel mixing utilities.

This module exposes the decoding pipeline used by the audio processing pipeline: WAV/PCM parsing (WavDecoder), linear resampling (SampleRateConverter), and channel mixing (ChannelMixer). Samples are normalized to the range [-1.0, 1.0] and converted to mono/16kHz.

Structs§

ChannelMixer
Channel mixer for converting multi-channel audio to mono.
DecodedAudio
Decoded audio data with normalized samples and metadata.
MixedAudio
Mono audio with metadata from channel mixing.
SampleRateConverter
Sample rate converter using linear interpolation.
WavDecoder
WAV/PCM audio decoder using the hound crate.