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

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

Built distribution (wheel)

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

Total release size: 570.7 kB

Release files / dsptoolbox-0.10.3.tar.gz

Download URL dsptoolbox-0.10.3.tar.gz
Size 261.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b7bf7541b017c6ab1c1fd2d90cb56e7507dbdd4b351051307c025cb326623d1c
BLAKE2b-256 checksum
How to use checksums
4a097dbd45e9a3fac74f44fc50a7591d83c5d3cd40eb495642d0705edc68556b
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.3-py3-none-any.whl

Download URL dsptoolbox-0.10.3-py3-none-any.whl
Size 309.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4e3cdfb1977a6df3ad159621e895daf6e8072076315611e2205ef9ec523959d
BLAKE2b-256 checksum
How to use checksums
bfaa262ca770c20ccae8e562b8db4752ab01a0eb538421a5146b790ac78f0cde
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.3 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