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 .
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
Metadata
Release files for soothingsounds 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| soothingsounds-1.0.2.tar.gz | 9.9 kB | Without provenance | Details for soothingsounds-1.0.2.tar.gz |
Release files / soothingsounds-1.0.2.tar.gz
| Download URL | soothingsounds-1.0.2.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce66d42198775595f926678ad2512322029f6481ce0f28a3c0c795fcb1ca9f59
|
|
BLAKE2b-256 checksum How to use checksums |
0e5923fcbf24c23f3f108d7142bf83c146fb4994c1fa9141aea98193489007f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
|
Security for soothingsounds 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.