Skip to main content

High quality, one-dimensional sample-rate conversion library

Project description

Python-SoXR

High quality, one-dimensional sample-rate conversion library for Python

Installation

pip install soxr

If installation fails, upgrade pip with python -m pip install --upgrade pip and try again.

Basic usage

import soxr

y = soxr.resample(
    x,          # 1D(mono) or 2D(frames, channels) array input
    48000,      # input samplerate
    16000       # target samplerate
)

Output is 2D numpy.ndarray with shape (frames, channels).

Credits

libsoxr (LGPLv2.1+)

https://sourceforge.net/projects/soxr/
Python-SoXR is a Python wrapper of libsoxr

PFFFT (BSD-like)

https://bitbucket.org/jpommier/pffft/
libsoxr uses PFFFT as FFT

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

soxr-0.0.3.tar.gz (101.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

soxr-0.0.3-cp37-cp37m-win_amd64.whl (100.7 kB view details)

Uploaded CPython 3.7mWindows x86-64

File details

Details for the file soxr-0.0.3.tar.gz.

File metadata

  • Download URL: soxr-0.0.3.tar.gz
  • Upload date:
  • Size: 101.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for soxr-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b6eff2f09af97b616573c9df592d4716c4ad7d85a85ee71f4ff1143d6a7840dc
MD5 b1d2e09b4f47509f37731fdf01a05708
BLAKE2b-256 e232443919552754d8670b2274fc51e82844d75ce07cb531c70b5ae69648d724

See more details on using hashes here.

File details

Details for the file soxr-0.0.3-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: soxr-0.0.3-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 100.7 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for soxr-0.0.3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 809328ae5986e1414c24a2b6c8cf770e64c6d2789ac4fba5f8e1b90616610dd9
MD5 da6fc5d4ebc31d9c3d44efd80a38530a
BLAKE2b-256 9f08994aa0a213bb01037782462dbb03663eb34a0efc75618f8e953065421e75

See more details on using hashes here.

Supported by

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