Skip to main content

Generate a variety of white/brown/pink noises good for relaxation

Project description

DOI image image Build status pypi versions PyPi Download stats

Soothing Sounds Generator

An acoustically pleasing Python code, targeted initially for Raspberry Pi, but should run almost anywhere. Uses lightweight, pure Python SoundDevice to generate sounds. Optionally, other sound playback Python packages can be used.

I have used the outputs of this program written to SD cards, played on media players in multiple locations for a few years.


pip install -e .


The noise color option is one of

white pink blue violet brown

the examples will use pink noise.

Play sound from speakers

python pink

save sound to disk

  1. generate raw sound file: python pink -o pink.raw
  2. convert raw to lossless FLAC (playable in almost all media players, computer, phone etc.)
    ffmpeg -f s16le -ar 16000 -ac 1 -i pink.raw pink.fla


The core noise generation code is almost entirely from Python Acoustics

optional high performance Python FFTW install:

apt install libfftw3-dev

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
soothingsounds-1.0.1.tar.gz (6.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page