https://github.com/ffont/freesound-wallpaper-generator
https://github.com/ffont/freesound-wallpaper-generator
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ffont/freesound-wallpaper-generator
- Owner: ffont
- Created: 2018-06-25T09:44:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-07T12:27:26.000Z (over 7 years ago)
- Last Synced: 2025-01-31T10:15:08.955Z (over 1 year ago)
- Language: Python
- Size: 5.97 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Freesound Wallpaper Generator
This is an awesome app for creating wallpapers using [Freesound](https://freesound.org)'s tools for generating waveform and spectrogram images.
The [code that generates](https://raw.githubusercontent.com/MTG/freesound/master/utils/audioprocessing/processing.py) the waveform and spectrogram images in Freesound was written a number of years ago by [Bram de Jong](https://www.linkedin.com/in/bdejong/). You can use that code as a command line tool as well, see [instructions here](https://github.com/MTG/freesound/wiki/Using-wav2png-to-generate-waveform-and-spectrogram-images). The original idea for the *Freesound Wallpaper Generator* app is from [Sebastian Mealla](https://www.linkedin.com/in/smealla/).
## Dev & deploy instructions
### Build & run
The following environment variables **must** be set before running using a `.env` file:
* `FS_CLIENT_ID`: Freesound API client ID (needs to have OAuth password grant enabled).
* `FS_UNAME`: Username for Freesound user that will *download* the sounds.
* `FS_PASSWORD`: Password for the Freesound user that will *download* the sounds.
The following environment variables are optional:
* `HOST`, `PORT`: Host and port for the web app (defaults to `0.0.0.0` and `5000`).
* `BASE_URL`: Base URL to build app URLs (defaults to `http://localhost:5000/`)
* `DEBUG`: Flask debug setting flag (defaults to `True`).
* `DATA_DIR`: Directory where to save generated data files (defaults to `/code/data/` inside docker image)
Create a file in this directory with no contents named `persistent_data.json`:
```touch persistent_data.json```
To run the app use:
```docker-compose up```
## TODO
* cleanup disk from time to time
* improve design, choose background image from a number of randomly pre-computed wallpapers