Skip to main content
docs/logo/logo.png
Documentation Status License Python version PyPI version

Readme

This is a toolbox in form of a python package that contains algorithms to be used in dsp (digital signal processing) research projects.

This is kind of a “sandbox” project with many different experimental implementations across a variety of DSP-related topics. Some parts are more thoroughly tested and validated than others, so “caution” is advised. Please feel free to reach out in case you find bugs or want to talk about certain functionality.

It is under active development and it will take some time until it reaches a certain level of maturity. Beware that backwards compatibility is not an actual concern and significant changes to the API might come in the future. If you find some implementations interesting or useful, please feel free to use it for your projects and expand or change functionalities.

Getting Started

Refer to the documentation for the complete description of classes and functions.

import dsptoolbox as dsp

signal = dsp.Signal.from_file("recording.wav")
signal = signal.set_spectrum_parameters(method=dsp.SpectrumMethod.FFT)
frequencies_hz, spectrum = signal.get_spectrum()

lowpass = dsp.Filter.iir_filter(
    order=8,
    frequency_hz=2000.0,
    type_of_pass=dsp.FilterPassType.Lowpass,
    sampling_rate_hz=signal.sampling_rate_hz,
)
filtered = lowpass.filter_signal(signal)
filtered.plot_magnitude()
dsp.plots.show()

Installation

Use pip to install dsptoolbox

$ pip install dsptoolbox

# Or this for activating numba parallelization
$ pip install "dsptoolbox[use-numba]"

(Requires Python 3.11 or higher)

In order to install the package successfully using Linux, you need to install PortAudio manually, since installing sounddevice will not do it automatically. To do this, run the following commands on your console:

$ sudo apt-get install libasound-dev libportaudio2 libsndfile1

If this does not work properly for some reason, refer to the documentation for sounddevice or PortAudio.

Release files for dsptoolbox 0.10.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dsptoolbox 0.10.1
File Size Uploaded
dsptoolbox-0.10.1.tar.gz 261.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dsptoolbox 0.10.1
File Interpreter ABI Platform
dsptoolbox-0.10.1-py3-none-any.whl Python 3 none any Details

Total release size: 570.1 kB

Release files / dsptoolbox-0.10.1.tar.gz

Download URL dsptoolbox-0.10.1.tar.gz
Size 261.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a7a34a5af4d95d51f4ce3b500d8b5915423509268263089af6f7db9f1cc9c69c
BLAKE2b-256 checksum
How to use checksums
80d9923cd007bc9481398357b08ea9bc09b401812b2ef8f3769c66c34b0f5564
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / dsptoolbox-0.10.1-py3-none-any.whl

Download URL dsptoolbox-0.10.1-py3-none-any.whl
Size 309.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c721cea43c6fdad36b4a658c94a3c429edba03978d10c220d66a6639a29d911
BLAKE2b-256 checksum
How to use checksums
1fa86958d5153e09b390be073f31a2c732f66eec9926482f90f5399e0ce22c37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.10.1 This release

2 release files

0.10

2 release files

0.9

2 release files

0.8

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

1 release file

0.7

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.16

2 release files

0.2.15

2 release files

0.2.14

2 release files

0.2.12

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page