Flask wrapper around the audio program generator module
beta+ ... meaning, it runs out of the box:
- locally on my Macbook Pro w/ Catalina 10.15.7, with ffmpeg version 4.4 installed via homebrew;
- on Heroku, with ffmpeg buildpack installed (https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latest) This code also runs on AWS Lambda but requires mods (see branch "heroku" (2a4684c).
- Some relatively recent version of Python (3.7+)
- FFMPEG with at least the ability to read mp3s and wavs, and write mp3s
- clone the repo
- cd into it
- create a virtual environment
- pip install -r requirements.txt
- vi .env
- set your environment variables:
- DEBUG=[True/False]
- cd into top directory of repo
- flask run
- point browser at http://127.0.0.1:5000/
- fill out the form, submit, and wait for browser to serve up your freshly mixed mp3 file :-)
- create new app on Heroku
- install ffmpeg buildpack as above
- point your app at the apg_flask repo on GitHub
- deploy
- point browser at your app's url
- fill out the form, submit, and wait for browser to serve up your freshly mixed mp3 file :-)
Jeff Wright jeff.washcloth@gmail.com