{
    "mode": "pydoc",
    "parameter": "audioop",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/audioop/json",
    "generated": "2026-06-02T14:27:50Z",
    "sections": {
        "NAME": {
            "content": "audioop\n",
            "subsections": []
        },
        "MODULE REFERENCE": {
            "content": "https://docs.python.org/3.10/library/audioop.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n",
            "subsections": []
        },
        "CLASSES": {
            "content": "builtins.Exception(builtins.BaseException)\nerror\n",
            "subsections": [
                {
                    "name": "class error",
                    "content": "|  Method resolution order:\n|      error\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors defined here:\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                }
            ]
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "add",
                    "content": "Return a fragment which is the addition of the two samples passed as parameters.\n"
                },
                {
                    "name": "adpcm2lin",
                    "content": "Decode an Intel/DVI ADPCM coded fragment to a linear fragment.\n"
                },
                {
                    "name": "alaw2lin",
                    "content": "Convert sound fragments in a-LAW encoding to linearly encoded sound fragments.\n"
                },
                {
                    "name": "avg",
                    "content": "Return the average over all samples in the fragment.\n"
                },
                {
                    "name": "avgpp",
                    "content": "Return the average peak-peak value over all samples in the fragment.\n"
                },
                {
                    "name": "bias",
                    "content": "Return a fragment that is the original fragment with a bias added to each sample.\n"
                },
                {
                    "name": "byteswap",
                    "content": "Convert big-endian samples to little-endian and vice versa.\n"
                },
                {
                    "name": "cross",
                    "content": "Return the number of zero crossings in the fragment passed as an argument.\n"
                },
                {
                    "name": "findfactor",
                    "content": "Return a factor F such that rms(add(fragment, mul(reference, -F))) is minimal.\n"
                },
                {
                    "name": "findfit",
                    "content": "Try to match reference as well as possible to a portion of fragment.\n"
                },
                {
                    "name": "findmax",
                    "content": "Search fragment for a slice of specified number of samples with maximum energy.\n"
                },
                {
                    "name": "getsample",
                    "content": "Return the value of sample index from the fragment.\n"
                },
                {
                    "name": "lin2adpcm",
                    "content": "Convert samples to 4 bit Intel/DVI ADPCM encoding.\n"
                },
                {
                    "name": "lin2alaw",
                    "content": "Convert samples in the audio fragment to a-LAW encoding.\n"
                },
                {
                    "name": "lin2lin",
                    "content": "Convert samples between 1-, 2-, 3- and 4-byte formats.\n"
                },
                {
                    "name": "lin2ulaw",
                    "content": "Convert samples in the audio fragment to u-LAW encoding.\n"
                },
                {
                    "name": "max",
                    "content": "Return the maximum of the absolute value of all samples in a fragment.\n"
                },
                {
                    "name": "maxpp",
                    "content": "Return the maximum peak-peak value in the sound fragment.\n"
                },
                {
                    "name": "minmax",
                    "content": "Return the minimum and maximum values of all samples in the sound fragment.\n"
                },
                {
                    "name": "mul",
                    "content": "Return a fragment that has all samples in the original fragment multiplied by the floating-point value factor.\n"
                },
                {
                    "name": "ratecv",
                    "content": "Convert the frame rate of the input fragment.\n"
                },
                {
                    "name": "reverse",
                    "content": "Reverse the samples in a fragment and returns the modified fragment.\n"
                },
                {
                    "name": "rms",
                    "content": "Return the root-mean-square of the fragment, i.e. sqrt(sum(Si^2)/n).\n"
                },
                {
                    "name": "tomono",
                    "content": "Convert a stereo fragment to a mono fragment.\n"
                },
                {
                    "name": "tostereo",
                    "content": "Generate a stereo fragment from a mono fragment.\n"
                },
                {
                    "name": "ulaw2lin",
                    "content": "Convert sound fragments in u-LAW encoding to linearly encoded sound fragments.\n"
                }
            ]
        },
        "FILE": {
            "content": "/usr/lib/python3.10/lib-dynload/audioop.cpython-310-x8664-linux-gnu.so\n\n",
            "subsections": []
        }
    },
    "summary": "audioop",
    "flags": [],
    "examples": [],
    "see_also": []
}