Historical and Removed Modules

audioop

Removed from the standard library in Python 3.13; historical example targets Python 3.12. Manipulated raw PCM fragments, including sample arithmetic, conversion and amplitude calculations. Modern alternatives depend on encoding, sample representation and clipping rules; array or struct can handle selected integer operations, while a maintained audio library may be needed for codecs.

Formal Syntax & Structure

python syntaxpython
import audioop  # Historical only: removed in Python 3.13

Return Value

module (historical)

Historical module namespace, not a supported standard-library import on the Python 3.13 baseline.

Working Example

Example Snippetpython
# Historical example: Python 3.12; not executed.import audioopprint(audioop.max(b"\x01\xff", 1))
Python Reference