Skip to main content

Provides functions to resample and remix a signal

Project description

Test status code coverage audresample's documentation audresamples's supported Python versions audfactory'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)

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Version 1.3.2 (2023-05-30)

  • Fixed: wrong version in deployed MacOS wheels in the publish Action on Github

Version 1.3.1 (2023-05-30)

  • Fixed: documentation building in deploy step of publish Action on Github

  • Changed: switch versions of MacOS wheel to macosx_11_0_arm64, macosx_10_4_x86_64

Version 1.3.0 (2023-05-30)

  • Added: support for Raspberry Pi 64-bit (aarch64) and 32-bit (armv7l)

  • Added: code example to README that highlights the functionality of the package

  • Changed: replace universal wheel of Python package by dedicated platform wheels for macosx_12_0_arm64, macosx_12_0_x86_64, manylinux_2_17_aarch64, manylinux_2_17_armv7l, manylinux_2_17_x86_64, win_amd64

Version 1.2.1 (2023-01-27)

  • Fixed: require sphinx-audeering-theme>=1.2.1 to ensure the correct theme is used for the public documentation

Version 1.2.0 (2023-01-27)

  • Added: support for MacOS M1 architecture

Version 1.1.1 (2022-12-23)

  • Added: support for Python 3.11

  • Added: support for Python 3.10

  • Changed: split API documentation into sub-pages for each function

  • Fixed: missing __init__.py file for audresample.define

Version 1.1.0 (2022-02-03)

  • Added: support for non single precision floating-point formats in audresample.remix()

  • Changed: raise a RuntimeError in audresample.resample() when a non single precision floating-point input signal is given instead of converting it silently

Version 1.0.0 (2022-01-04)

  • Added: Python 3.9 support

  • Removed: Python 3.6 support

Version 0.1.6 (2021-06-17)

  • Added: Windows support

Version 0.1.5 (2021-05-10)

  • Added: macOS support

Version 0.1.4 (2021-03-26)

  • Fixed: “Edit on Github” link in the docs

Version 0.1.3 (2021-03-25)

  • Changed: move to Github and release as open source

Version 0.1.2 (2021-03-18)

  • Added: upmix argument to remix()

Version 0.1.1 (2021-01-15)

  • Fixed: Updating binaries to RELEASE versions (execution time greatly reduced!)

Version 0.1.0 (2020-02-12)

  • Added: Initial release

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.2.tar.gz (1.9 MB view hashes)

Uploaded Source

Built Distributions

audresample-1.3.2-py3-none-win_amd64.whl (182.6 kB view hashes)

Uploaded Python 3 Windows x86-64

audresample-1.3.2-py3-none-manylinux_2_17_x86_64.whl (134.6 kB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

audresample-1.3.2-py3-none-manylinux_2_17_armv7l.whl (97.4 kB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ ARMv7l

audresample-1.3.2-py3-none-manylinux_2_17_aarch64.whl (116.6 kB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

audresample-1.3.2-py3-none-macosx_11_0_arm64.whl (80.4 kB view hashes)

Uploaded Python 3 macOS 11.0+ ARM64

audresample-1.3.2-py3-none-macosx_10_4_x86_64.whl (124.2 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