Full API

scikits.samplerate.available_convertors()

List the list of available convertor.

Returns:

descr : sequence

List of valid convertor (as string) for the type argument of resample.

See also

convertor_descripts, resample

scikits.samplerate.convertor_description()

Return a detailed description of the given convertor type.

Parameters:

type : str

resample type (see Notes).

Returns:

descr : str

String describing the given convertor.

scikits.samplerate.resample()

Resample the input array using the given converter type, with a ratio r (ie the resulting array will have a length ~ r * input’s length).

Parameters:

input: array :

input data

r: float :

ratio

type: str :

resample type (see Note)

Returns:

output: array :

output data, whose size is approximately r * input.size

Notes

If input has rank 1, than all data are used, and are assumed to be from a mono signal. If rank is 2, the number columns will be assumed to be the number of channels.

The list of convertor types is available from the function available_convertors.

Only sinc_*-based interpolation provide good quality; linear and zero_order_hold should be avoided as much as possible, and be used only when speed is critical.

Previous topic

Usage

Next topic

TODO

This Page