✔️ 100% Tested and Verified: Works in Docker Desktop on Windows, Linux, and MacOS.
Spin up your own audio analysis API in seconds, with zero local setup!
- 🎧 Upload: mp3, wav, flac, m4a, opus, ogg, aac, wma, ac3, mid
- ⏱ Instantly returns duration (seconds) and MIME type
- 🚦 Strict input validation (type, size, empty file)
- 🗑 Auto-delete after analysis (no file storage)
- 🌍 CORS-enabled, clean modular structure
- 🧪 Postman & Docker tested
- Body: form-data
- file (type: File) — your audio file
Example Response
{
"duration_seconds": 257.91,
"format": "audio/mpeg"
}
- Unsupported file type:
{"error": "Unsupported file type: .txt"}
- No file/empty file:
{"error": "No file part"}
- File too large (max 15MB):
{"error": "File too large. Max size is 15MB."}
pip install -r requirements.txt
python app.py
Run anywhere — one command deploy!
docker build -t audio-analyzer .
docker run -d -p 5000:5000 audio-analyzer
API will be available at:
http://localhost:5000/
- Server running
- Postman request & response
- Console logs (duration & format)
See /screens/
for real usage.
💡 You can see real examples on the Gumroad gallery.
You can get a ZIP version with all files, setup instructions, .env.example
, and more:
- Email: [email protected]
- Telegram: @talabovali
Need this in another stack (Node.js, Go, etc)?
Email or Telegram — custom dev available.
This project is fully tested and verified in Docker.
Build, run, and deploy with confidence.