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.2

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.2
File Size Uploaded
dsptoolbox-0.10.2.tar.gz 261.3 kB Details

Built distribution (wheel)

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

Total release size: 570.7 kB

Release files / dsptoolbox-0.10.2.tar.gz

Download URL dsptoolbox-0.10.2.tar.gz
Size 261.3 kB
Tags Source
SHA-256 checksum
How to use checksums
47148e75d9b7f94e32ddc65e489fa5acc3ff6c806df47f2d8cb91b9404ff5cf3
BLAKE2b-256 checksum
How to use checksums
8f5e24731f67dd389cb3e51f37a685687bdca12b980b048ce205f2f8829cf6ed
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.2-py3-none-any.whl

Download URL dsptoolbox-0.10.2-py3-none-any.whl
Size 309.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44aaa25aef8983f175becf554b676cc966ed61c44ec400f4180505e14bd712f3
BLAKE2b-256 checksum
How to use checksums
be1edd619cda36137d32dfffa4d3a5757e2364b3ae379c5522927d577e078ab8
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.2 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