https://github.com/jeffwright13/apg_flask
Flask wrapper around the [audio program generator](https://github.com/jeffwright13/audio_program_generator) module
https://github.com/jeffwright13/apg_flask
Last synced: 5 months ago
JSON representation
Flask wrapper around the [audio program generator](https://github.com/jeffwright13/audio_program_generator) module
- Host: GitHub
- URL: https://github.com/jeffwright13/apg_flask
- Owner: jeffwright13
- Created: 2021-05-31T10:24:42.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2026-01-10T10:48:15.000Z (6 months ago)
- Last Synced: 2026-01-11T03:28:01.144Z (5 months ago)
- Language: HTML
- Homepage:
- Size: 171 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 36
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# apg_flask
Flask wrapper around the [audio program generator](https://github.com/jeffwright13/audio_program_generator) module
# Current status
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).
# Prerequisites
* Some relatively recent version of Python (3.7+)
* FFMPEG with at least the ability to read mp3s and wavs, and write mp3s
# Prep for execution
* clone the repo
* cd into it
* create a virtual environment
* pip install -r requirements.txt
* vi .env
* set your environment variables:
* DEBUG=[True/False]
# Run locally (localhost)
* 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 :-)
# Run on Heroku
* create new app on Heroku
* install ffmpeg buildpack as above
* point your app at the [apg_flask](https://github.com/jeffwright13/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 :-)
# Author:
Jeff Wright