Skip to main content

Resample and remix an audio signal

Project description

Test status code coverage audresample's documentation audresamples's supported Python versions audresample's MIT license

audresample remixes or resamples your signals.

Resampling is supported for signals in single precision floating-point format, and based on the soxr implementation as provided by audresamplelib.

Have a look at the installation and usage instructions.

>>> import numpy as np
>>> import audresample
>>> signal = np.zeros((2, 8000), dtype='float32')
>>> signal.shape
(2, 8000)
>>> audresample.remix(signal, mixdown=True).shape
(1, 8000)
>>> audresample.remix(signal, channels=[0, 0, 1, 1]).shape
(4, 8000)
>>> audresample.resample(signal, 8000, 16000).shape
(2, 16000)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

audresample-1.3.3.tar.gz (1.9 MB view hashes)

Uploaded Source

Built Distributions

audresample-1.3.3-py3-none-win_amd64.whl (186.4 kB view hashes)

Uploaded Python 3 Windows x86-64

audresample-1.3.3-py3-none-manylinux_2_17_x86_64.whl (138.4 kB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

audresample-1.3.3-py3-none-manylinux_2_17_armv7l.whl (101.2 kB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ ARMv7l

audresample-1.3.3-py3-none-manylinux_2_17_aarch64.whl (120.3 kB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

audresample-1.3.3-py3-none-macosx_11_0_arm64.whl (84.2 kB view hashes)

Uploaded Python 3 macOS 11.0+ ARM64

audresample-1.3.3-py3-none-macosx_10_4_x86_64.whl (128.0 kB view hashes)

Uploaded Python 3 macOS 10.4+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page