Generate a variety of white/brown/pink noises good for relaxation
Project description
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.
Install
pip install -e .
Usage
The noise color
option is one of
white pink blue violet brown
the examples will use pink noise.
Play sound from speakers
python soothing.py pink
save sound to disk
- generate raw sound file:
python soothing.py pink -o pink.raw
- 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
Notes
The core noise generation code is almost entirely from Python Acoustics
optional high performance Python FFTW install:
apt install libfftw3-dev
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file soothingsounds-1.0.1.tar.gz
.
File metadata
- Download URL: soothingsounds-1.0.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 554a9a5d6c950c5c9be4c8ab6a046613fd413b7168a96d2833c51d2a5b5de2a6 |
|
MD5 | 9119e13d7ebed132d4f7a52f3cb51ba7 |
|
BLAKE2b-256 | 0dbad078a959c63bbd030871fd872e3e13186a72c5e9a21fa8dd1c7d3063000a |