From 7de35c7b80afa74b07fbe15de7970ba9a91852e3 Mon Sep 17 00:00:00 2001 From: max Date: Wed, 19 Aug 2026 12:20:20 +0400 Subject: [PATCH] Update Getting Started --- Getting-Started.md | 46 +++------------------------------------------- 1 file changed, 3 insertions(+), 43 deletions(-) diff --git a/Getting-Started.md b/Getting-Started.md index 421ed05..546b53a 100644 --- a/Getting-Started.md +++ b/Getting-Started.md @@ -34,48 +34,6 @@ pip install . audio_splitter input.mp3 tracklist.txt ``` -### Using Docker -You can also pull a pre-build OCI image from the registry - -**Web API only:** -```bash -docker pull git.vmn.su/max/audio_splitter_backend:latest -docker container run -d -p 8000:8000 git.vmn.su/max/audio_splitter_backend:latest -curl -X POST -F "file=@./q.opus" http://localhost:8000/api/upload -# Response: {"task_id":"dca75691","filename":"q.opus","size":4010709} -# We need to copy task_id -curl -X POST http://localhost:8000/api/split \ - -H "Content-Type: application/json" \ - -d '{ - "task_id": "YOUR_TASK_ID", - "tracklist": [ - {"ts": "00:00", "tn": "Intro"}, - {"ts": "01:30", "tn": "Song One", "an": "Artist A"}, - {"ts": "02:20", "tn": "Another Song", "an": "Artist B"} - ], - "options": { - "format": "mp3" - } - }' -# Response: {"task_id":"YOUR_TASK_ID","status":"processing"} -curl http://localhost:8000/api/status/YOUR_TASK_ID -# Response {"task_id":"YOUR_TASK_ID","status":"done","progress":100,"message":"Split complete","error":null,"tracks":[....]} -# Now you can download the result -curl -OJ http://localhost:8000/api/download/YOUR_TASK_ID -``` - -Complete web-interface: -```bash -# Pull and start the backend -docker pull git.vmn.su/max/audio_splitter_backend:latest -docker container run -d -p 8000:8000 git.vmn.su/max/audio_splitter_backend:latest - -# Pull and start the frontend -docker pull git.vmn.su/max/audio_splitter_frontend:latest -docker run -d -p 5173:80 git.vmn.su/max/audio_splitter_frontend:latest -``` -Now the fully functional web-interface should be accessible via http://localhost:5173 - ### Using Docker Compose Web version is also available with Docker Compose: @@ -102,4 +60,6 @@ services: depends_on: - backend restart: unless-stopped -``` \ No newline at end of file +``` + +Now the fully functional web-interface should be accessible via http://localhost:5173 \ No newline at end of file