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

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
File Size Uploaded
dsptoolbox-0.10.tar.gz 261.1 kB Details

Built distribution (wheel)

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

Total release size: 570.3 kB

Release files / dsptoolbox-0.10.tar.gz

Download URL dsptoolbox-0.10.tar.gz
Size 261.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d05bec107fd4d3da74cf39b617a5647778c59831884363b5ea249c9f4063831c
BLAKE2b-256 checksum
How to use checksums
43cd738865a64947330529979965344f3f3c540c5651f5aa2677c85863491ebc
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-py3-none-any.whl

Download URL dsptoolbox-0.10-py3-none-any.whl
Size 309.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f457b61dfeb77726a28504c2e00ce484956497339f7b6cbe9eecba90b3fb254
BLAKE2b-256 checksum
How to use checksums
d3178c4758a7dda1f49304bdd42a2b09ebcbc35a1102a2ad9ad96ee867248458
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 This release

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