Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6
Demo several ways of making sound from Numpy arrays in Python, white noise
License
scivision/soothing-sounds
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
An acoustically pleasing Python code, targeted initially for Raspberry Pi, but should run almost anywhere.Uses lightweight, pure PythonSoundDeviceto 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 noisecolor
option is one of
white pink blue violet brown
the examples will use pink noise.
python soothing.py pink
- 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
The core noise generation code is almost entirely fromPython Acoustics
apt install libfftw3-dev
About
Demo several ways of making sound from Numpy arrays in Python, white noise
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.