### Install codecpod via pip Source: https://github.com/zhoukezi/codecpod/blob/main/README.md Standard installation command for the Python package. ```bash pip install codecpod ``` -------------------------------- ### Audio processing with codecpod Source: https://github.com/zhoukezi/codecpod/blob/main/README.md Examples for reading metadata, decoding audio with resampling, and encoding audio with specific parameters. ```python import codecpod import numpy as np # Read audio metadata info = codecpod.info("input.flac") print(info.sample_rate, info.channels, info.frames, info.codec) # Decode audio; returns (ndarray, sample_rate) by default, with channels_first=True waveform, sample_rate = codecpod.load("input.flac") # Resample to 16 kHz and downmix to mono while decoding waveform, sample_rate = codecpod.load( "input.flac", sample_rate=16000, mono=True, ) # Encode to MP3 with explicit encoder parameters codecpod.save( "output.mp3", waveform, sample_rate, codec=codecpod.Mp3(bit_rate=192000), ) ``` -------------------------------- ### Build codecpod from source Source: https://github.com/zhoukezi/codecpod/blob/main/README.md Commands to build the project from source using maturin. ```bash uvx maturin develop --release ``` ```bash uvx maturin build --release ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.