Audio Upload App
Simple app for uploading MP3/WAV files with real-time WebSocket updates.
Setup
-
Install dependencies:
pip install fastapi uvicorn python-multipart jinja2 pillow -
Create favicon:
python create_favicon.py -
Run the app:
uvicorn main:app --reload -
Open in browser:
http://127.0.0.1:8000/
Files
main.py # FastAPI backend
index.html # Frontend template
static/favicon.ico # Site icon
uploads/ # Where files are stored
create_favicon.py # Creates the favicon
API
GET /- Web interfacePOST /upload- Upload audio filesGET /files- List all uploaded filesWebSocket /ws- Real-time updates
TODOs
- Add file size limits
- Add basic auth if needed later
- Add filename cleanup
Notes
- Built with FastAPI + WebSockets
- Real-time file list updates
- Checks for duplicate files
- MP3 and WAV files only
Description
Languages
Python
61.4%
HTML
38.6%