2025-04-14 00:13:19 +03:00
2025-03-26 05:03:09 +03:00
2025-04-14 00:12:35 +03:00
2025-03-26 05:03:09 +03:00
2025-03-26 05:03:09 +03:00
2025-03-26 05:03:09 +03:00
2025-03-26 02:32:25 +03:00
2025-04-14 00:13:19 +03:00

Audio Upload App

Simple app for uploading MP3/WAV files with real-time WebSocket updates.

Setup

  1. Install dependencies:

    pip install fastapi uvicorn python-multipart jinja2 pillow
    
  2. Create favicon:

    python create_favicon.py
    
  3. Run the app:

    uvicorn main:app --reload
    
  4. 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 interface
  • POST /upload - Upload audio files
  • GET /files - List all uploaded files
  • WebSocket /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
No description provided
Readme 81 KiB
Languages
Python 61.4%
HTML 38.6%