Skip to main content

sound utilities and sounds

Project description



sudo apt install    \
    libasound-dev   \
    portaudio       \
    python-pyaudio  \

pip install tonescale


Tonescale provides various sound utilities and capabilities for Python in Linux. It provides a Sound class that can store a sound in a NumPy array, can load the sound from a file, can save the sound to a file, and can play the sound using aplay or by streaming the sound using PyAudio. Sounds can be added, summed and repeated symbolically. Tonescale includes some sounds.

A tonescale module sound can be accessed in the following way:

sound_1 = tonescale.access_sound(name = "199935__drzhnn__04-blip")

Sounds can be repeated:

sound_1.repeat(number = 2)

Sounds can be added:

sound_3 = sound_1 + sound_2

Sounds can be summed:

sound_3 = sum([sound_1, sound_2])

Sounds can be played:

Sounds can be played in the background too: = True)

Sounds can also be played in a stream:


Sounds can be saved to files:


Sounds can be loaded from files:

sound_1.read_WAVE(filename = "199935__drzhnn__04-blip.wav")

See example code for more details.

Tonescale also provides, which can search recursively for sound files of a specified minimum duration.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tonescale, version 2018.2.6.1919
Filename, size File type Python version Upload date Hashes
Filename, size tonescale-2018.2.6.1919.tar.gz (2.9 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page