Ecasound Audio Resampling Quality Settings

This guide explains how to control audio resampling quality in Ecasound using command-line arguments. When processing streams with mismatched sample rates, Ecasound automatically converts the audio rate. By configuring the appropriate resampling flag, you can balance CPU utilization and audio fidelity according to your production requirements.

The Resampling Quality Argument

In Ecasound, audio resampling quality is specified using the -z:src,converter_type command-line argument, which interfaces with Secret Rabbit Code (libsamplerate).

The syntax is:

ecasound -z:src,converter_type -i input.wav -o output.wav

Supported Resampling Modes

The converter_type parameter accepts an integer value from 0 to 4, representing standard libsamplerate algorithms:

Practical Usage Example

To convert a 44.1 kHz audio file to 48 kHz using the highest-quality resampling algorithm, specify the target format with -f alongside the -z:src argument:

ecasound -z:src,0 -i:source_44k.wav -f:s16_le,2,48000 -o:output_48k.wav

If the -z:src option is omitted, Ecasound falls back to its internal linear conversion routine or default library configuration, which requires minimal processing power but may introduce audible aliasing artifacts.