Full API¶
-
scikits.samplerate.
available_convertors
()¶ Return the list of available convertor.
-
scikits.samplerate.
convertor_description
(type)¶ 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
(ndarray input, r, type, verbose=False)¶ 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.