Skip to content

cpenning/slumber

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slumber

This is a noise machine to help you sleep better. Really it's just an audio playback system that has a simple command language and comes with a collection of sounds that have been sorted in a specific way.

It is meant to be run on an Raspberry Pi plugged into small powered speakers and placed near your bed, but can easily be run on any machine that has Python & Pygame and can produce audio.

It is licensed under the Apache 2.0 License.

Use

It is built using Python and the pygame mixer module.

Raspberry Pi's already have pygame loaded and ready to go, just checkout this repository with git and go.

For OS X, see: Homebrew pygame install instructions.

To run slumber:

python -m slumber.cli -s sounds

See the output of --help for all options.

Raspberry Pi Build

https://raw.githubusercontent.com/borgstrom/slumber/master/docs/slumber-prototype.jpg

A Raspberry Pi 1 model A+ was used along with a 3W+3W 5V Amp and two 4 Ohm 3W speakers to build a small portable sleep aid.

Slumber is set to start on boot up right now, in the future I'll add a button.

Sounds

All sound files are from freesound.org and are licensed under a Creative Commons By Attribution license.

They have been converted from their original formats to 16-bit, 44100kHz, 2-channel wav files and have been passed through a "normalize" filter to -1dB in Audacity.

We pre-convert the sounds to save processor time when playing back. If we're going to play the same sound over and over there's no reason to waste cycles decoding anything.

Sounds Used

About

Python sleep aid

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.2%
  • Shell 2.8%