carta
sndfile-resample(1)

sndfile-resample1

Sample rate converter

Usage

sndfile-resample [-c number] -to rate input output

sndfile-resample [-c number] -by ratio input output

Overview

sndfile-resample is a sample rate converter using libsndfile for file I/O and Secret Rabbit Code (aka libsamplerate) for performing the conversion. It works on any file format supported by libsndfile with any number of channels (limited only by host memory).

The options are as follows:

-c number

Choose the converter type from the following list:

0

Best Sinc Interpolator

1

Medium Sinc Interpolator (default)

2

Fastest Sinc Interpolator

3

ZOH Interpolator

4

Linear Interpolator

-to rate

Convert to the specified sample rate.

-by ratio

Change the sample rate by the given ratio, which can be any positive real; the resulting rate is floored to an integer. For instance, changing the rate of 44100 by a factor of 1.3333 results in a sample rate of 58798.

--no-normalize

Disable clipping check and normalization.

History

  • Debian 13 (Trixie) to Debian 11 (Bullseye): the text shown here
  • Debian 10 (Buster) to Debian 6.0 (Squeeze)

--no-normalize since Debian 11 (Bullseye); -by since Debian 11 (Bullseye); -c since Debian 11 (Bullseye); -to since Debian 11 (Bullseye).

Authors

Erik de Castro Lopo ⟨[email protected]⟩

From sndfile-tools 1.5-4 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.