💾 Archived View for tris.fyi › pydoc › audioop captured on 2023-04-26 at 13:34:39. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-01-08)

-=-=-=-=-=-=-

Back to module index

Go to module by name

audioop

This module has no docstring.

Classes

error

with_traceback(...)

  Exception.with_traceback(tb) --
      set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>

Functions

add

add(fragment1, fragment2, width, /)

  Return a fragment which is the addition of the two samples passed as parameters.

adpcm2lin

adpcm2lin(fragment, width, state, /)

  Decode an Intel/DVI ADPCM coded fragment to a linear fragment.

alaw2lin

alaw2lin(fragment, width, /)

  Convert sound fragments in a-LAW encoding to linearly encoded sound fragments.

avg

avg(fragment, width, /)

  Return the average over all samples in the fragment.

avgpp

avgpp(fragment, width, /)

  Return the average peak-peak value over all samples in the fragment.

bias

bias(fragment, width, bias, /)

  Return a fragment that is the original fragment with a bias added to each sample.

byteswap

byteswap(fragment, width, /)

  Convert big-endian samples to little-endian and vice versa.

cross

cross(fragment, width, /)

  Return the number of zero crossings in the fragment passed as an argument.

findfactor

findfactor(fragment, reference, /)

  Return a factor F such that rms(add(fragment, mul(reference, -F))) is minimal.

findfit

findfit(fragment, reference, /)

  Try to match reference as well as possible to a portion of fragment.

findmax

findmax(fragment, length, /)

  Search fragment for a slice of specified number of samples with maximum energy.

getsample

getsample(fragment, width, index, /)

  Return the value of sample index from the fragment.

lin2adpcm

lin2adpcm(fragment, width, state, /)

  Convert samples to 4 bit Intel/DVI ADPCM encoding.

lin2alaw

lin2alaw(fragment, width, /)

  Convert samples in the audio fragment to a-LAW encoding.

lin2lin

lin2lin(fragment, width, newwidth, /)

  Convert samples between 1-, 2-, 3- and 4-byte formats.

lin2ulaw

lin2ulaw(fragment, width, /)

  Convert samples in the audio fragment to u-LAW encoding.

max

max(fragment, width, /)

  Return the maximum of the absolute value of all samples in a fragment.

maxpp

maxpp(fragment, width, /)

  Return the maximum peak-peak value in the sound fragment.

minmax

minmax(fragment, width, /)

  Return the minimum and maximum values of all samples in the sound fragment.

mul

mul(fragment, width, factor, /)

  Return a fragment that has all samples in the original fragment multiplied by the floating-point value factor.

ratecv

ratecv(fragment, width, nchannels, inrate, outrate, state, weightA=1, weightB=0, /)

  Convert the frame rate of the input fragment.

reverse

reverse(fragment, width, /)

  Reverse the samples in a fragment and returns the modified fragment.

rms

rms(fragment, width, /)

  Return the root-mean-square of the fragment, i.e. sqrt(sum(S_i^2)/n).

tomono

tomono(fragment, width, lfactor, rfactor, /)

  Convert a stereo fragment to a mono fragment.

tostereo

tostereo(fragment, width, lfactor, rfactor, /)

  Generate a stereo fragment from a mono fragment.

ulaw2lin

ulaw2lin(fragment, width, /)

  Convert sound fragments in u-LAW encoding to linearly encoded sound fragments.